Question
Is it permissible to pray behind an imam who does not pray in accordance with the Sunnah?
Answer
الحمد لله، والصلاة والسلام علىٰ رسول الله، أما بعد!
Regarding praying behind an imam who prays contrary to the Sunnah, there are two possible cases:
✦ The first case:
*A prayer based on differences in secondary matters and schools of thought*
If what you mean is a prayer that is based only on differences between schools of thought or in secondary matters, such as:
◈ Raising or not raising the hands (raf’ al-yadayn)
◈ Saying Amin aloud or saying it quietly
◈ Reciting Surah al-Fatihah behind the imam or not reciting it
then these acts do not fall under the category of “contrary to the Sunnah”, because all these differences are of an ijtihadi nature and relate to secondary matters.
✅ In such a case:
Praying behind such an imam is permissible, and, if Allah wills, the prayer will be valid.
📚 Imam Ibn Qudamah (may Allah have mercy on him) says:
فأما المخالفون في الفروع كأصحاب أبي حنيفة , ومالك , والشافعي : فالصلاة خلفهم صحيحة غير مكروهة ، نصَّ عليه أحمد ; لأن الصحابة والتابعين ومن بعدهم : لم يزل بعضهم يأتم ببعض , مع اختلافهم في الفروع , فكان ذلك إجماعاً
That is:
- Praying behind those who differ in secondary matters, such as Imam Abu Hanifah (may Allah have mercy on him), Imam Malik (may Allah have mercy on him) and Imam al-Shafi’i (may Allah have mercy on him), is valid and not disliked.
- Imam Ahmad (may Allah have mercy on him) also confirmed this.
- The Companions, the Tabi’in and those after them continued to pray behind one another despite their differences in secondary matters, and this practice has the status of consensus (ijma’).
📚 Shaykh al-Islam Ibn Taymiyyah (may Allah have mercy on him) says:
وأما صلاة الرجل خلف من يخالف مذهبه : فهذه تصح باتفاق الصحابة والتابعين لهم بإحسان ، والأئمة الأربعة
That is:
- Praying behind an imam who belongs to a different school of fiqh is valid by the agreement of the Companions, the Tabi’in and the four Imams.
📚 The fatwa of the scholars of the Permanent Committee (al-Lajnah al-Da’imah):
الاختلاف في الفروع ليس له أثر في صحة صلاة بعض المختلفين خلف بعض ، وعلى الإمام وغيره من أهل العلم أن يتحرى الأرجح في الدليل ، سواء كان المأمومون يوافقونه في ذلك أم لا
That is:
- Differences in secondary matters have no effect on the validity of one another’s prayer behind each other.
- It is obligatory upon the imam and other people of knowledge to adopt the view that is preponderant in terms of evidence, whether or not the followers agree with them.
🟢 Conclusion:
From all these evidences it is clear that people from all the schools of thought of Ahl al-Sunnah may pray behind one another, and their prayer is completely valid.
✦ The second case:
*A clear violation of the Shari’ah or of creed in the prayer*
If by “contrary to the Sunnah” you mean that:
◈ The imam deliberately leads a four-rak’ah prayer with five rak’ahs
◈ He deliberately makes reductions or additions in the prayer
◈ That imam is clearly a polytheist (mushrik)
❌ Then in such a case:
Praying behind such a person is not valid.
هٰذا ما عندي والله أعلم بالصواب