Question
What is the ruling on praying behind an imam who has been caught in the crime of adultery or has himself confessed to it, or who is involved in drinking alcohol, gambling, using bhang and charas, or usury-based business, or who creates discord among people by means of amulets and charms? Is his leading the prayer permissible according to the Shariah?
Answer
A person who is involved in the sins mentioned, or in open wrongdoing and immorality, is not fit to be an imam. According to the Shariah, it is obligatory to remove such a person from the position of imam, and it is necessary to appoint a righteous and religiously committed person in his place.
The Qualification of the Imam
The hadiths give clear guidance that the imam should be the person who is best in knowledge and piety. In the hadith of Musnad Mustadrak al-Hakim, the Messenger of Allah ﷺ said:
“اِنْ سَرَّكُمْ اَنْ تُقْبَلَ صَلاتُكُمْ فَلْيُؤُمَّكُمْ خِيَارُكُمْ”
Translation: “If you want your prayer to be accepted, then appoint the best of you as your imam.”
Similarly, in a hadith of Sahih al-Bukhari and Sahih Muslim, it is said:
“يؤم القوم اقرؤھم لکتاب اللّٰہ”
Translation: “The one who has the most knowledge of the Book of Allah should lead the people in prayer.”
The Imamate of an Imam Involved in Wrongdoing and Immorality
Imam Ibn Taymiyyah (may Allah have mercy on him) said that a person who is involved in acts of wrongdoing and immorality cannot be made an imam. If such a person is made an imam while a good and righteous person is available, it amounts to betraying Allah and His Messenger.
Imam Ibn Taymiyyah (may Allah have mercy on him) was asked whether a person who drinks bhang can be made an imam. He said:
“A person who is involved in forbidden acts cannot be made an imam.”
Prayer Behind an Immoral Imam
The jurists agree that prayer behind a wrongdoing imam is disliked. According to some narrations from Imam Malik and Imam Ahmad, prayer behind a wrongdoing imam is not valid at all, whereas according to Imam Abu Hanifa and Imam al-Shafi’i, such a prayer is disliked but is valid.
Conclusion
◄ It is obligatory to remove from the imamate a person who is involved in adultery, drinking alcohol, usury-based business, or other wrongdoing and immorality.
◄ It is necessary to make the most righteous, knowledgeable and God-fearing person in the congregation the imam.
◄ If the imamate of a wrongdoing person is accepted, Muslims face spiritual decline, as mentioned in the hadiths.