Question
Is the prayer valid or not behind one who holds a corrupt belief and prays contrary to the Sunnah, or behind an imam who is an adulterer and a transgressor (fasiq)?
Answer
الحمد لله، والصلاة والسلام علىٰ رسول الله، أما بعد!
By one who holds a corrupt belief, what is probably meant is a person who does not believe in those fundamental beliefs on which the foundation of faith stands. If this is what the questioner means, then prayer behind such a person is by no means valid, because whoever’s belief is not sound is outside the fold of Islam. It is said in the Noble Quran:
﴿وَمَن يَعْمَلْ مِنَ ٱلصَّـٰلِحَـٰتِ مِن ذَكَرٍ أَوْ أُنثَىٰ وَهُوَ مُؤْمِنٌ فَأُو۟لَـٰٓئِكَ يَدْخُلُونَ ٱلْجَنَّةَ وَلَا يُظْلَمُونَ نَقِيرًۭا ﴿١٢٤﴾
It is clear from this verse that the acceptance of deeds depends on sound faith. That is, Allah the Almighty says that whoever does a righteous deed, whether male or female, provided that he is a believer, will be admitted to Paradise and will not be wronged even by the slightest amount. If the faith itself is not sound, how will his righteous deeds be accepted?
Since prayer is also among the righteous deeds, the prayer of one whose faith is not sound will not be accepted either. And when his prayer is not accepted, praying behind him will be utterly pointless.
Prayer behind a transgressor (fasiq), a sinner (fajir) and an innovator
◄ As for a person who is immersed in transgression and wickedness or who prays contrary to the Sunnah, it is also known from authentic hadiths that such people should not be made imams.
◄ A person who prays contrary to the Sunnah is an innovator.
◄ Making an innovator an imam is promoting his innovation, and honouring an innovator without any compelling necessity is also a sin.
Relevant hadiths
Hadith of al-Tirmidhi:
Imam al-Tirmidhi (may Allah have mercy on him) narrated in his Jami’ from Abu Umamah (may Allah be pleased with him):
((قال رسول الله صلى الله عليه وسلم ثلاثه لاتجاوزصلواتهم آذانهم العبدالابق حتى يرجع وامراةباتت وزوجهاعليهاساخط وامام قوم وهم له كارهون))
That is, the Messenger of Allah ﷺ said: The prayer of three people does not rise above their ears (that is, it is not accepted by Allah):
➊ A runaway slave, until he returns to his master.
➋ A woman who spends the night while her husband is angry with her.
➌ An imam whose leadership his people dislike.
Imam al-Tirmidhi (may Allah have mercy on him) says that this hadith is hasan (good).
Hadith of Ibn Majah:
Similarly, in Ibn Majah it is narrated from Ibn Abbas (may Allah be pleased with him), but in it the third person is mentioned with the words
‘‘وآخران يتصارمان’’
that is, two men who have severed relations with one another over worldly matters. Hafiz al-Iraqi (may Allah have mercy on him) says that its chain of narration is hasan (good).
The meaning of these hadiths
It is understood from these narrations that if an imam leads the prayer while the followers are displeased with him, his prayer is not accepted. It is obvious that if the imam is a transgressor (fasiq), a sinner (fajir), of corrupt belief, or prays contrary to the Sunnah, the followers will not willingly pray behind him. Yes, if the followers are likewise transgressors and innovators, then that is another matter.
But generally the followers remain displeased with such an imam in their hearts and dislike him, so his prayer remains deprived of acceptance with Allah. When the imam’s own prayer is not accepted, what benefit will there be in praying behind him?
Guidance regarding the better imam
Imam al-Hakim, in the biography of Marthad al-Ghanawi (may Allah be pleased with him), narrated a hadith of the Messenger of Allah ﷺ:
((ان سركم ان تقبل صلاتكم فليئومكم خياركم فانهم وفدكم فيمابينكم وبين ربكم عزوجل.))
That is, the Noble Prophet ﷺ said:
“If it pleases you that your prayer be accepted, then your imams should be the best of you, for they are your delegation between you and your Lord.”
This hadith makes clear that only a pious and righteous person should be made imam. If an innovator or a transgressor (fasiq) is made imam, the prayer of the followers will not be accepted either. The reason is that making such a person imam is promoting his innovation and transgression, and this act is extremely blameworthy. By honouring such an imam, the followers too actually share in the promotion of his innovation, so their prayer is also deprived of acceptance.
Summary
◈ Prayer behind one who holds a corrupt belief is not valid at all.
◈ Making a transgressor (fasiq), a sinner (fajir) or one who prays contrary to the Sunnah an imam is also forbidden.
◈ Praying behind an innovator imam is promoting his innovation, which is impermissible.
◈ According to the authentic hadith, a pious and the best person should always be chosen as imam so that the prayer of the followers is also accepted.
ھذا ما عندی واللہ اعلم بالصواب