Question :
What is the ruling on praying behind a disliked Imam?
The Answer :
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
It is mildly disliked (Makruh Tanzihan) for a man—other than the permanent designated Imam (Imam Ratib)—to lead people in prayer if the majority of them dislike him due to a religiously blameworthy reason (Amr Madhmum Shar‘an), such as associating with open sinners (Fussaq), for example. As for the followers who dislike him, the prayer behind him is not disliked for them. However, if less than the majority dislike him, or if the majority dislike him for a reason that is not religiously blameworthy, then his leading the prayer is not disliked. And Allah the Exalted knows best.