Hadith 91

Sahih Bukhari

Book 10: Call to Prayers (Adhaan)

Chapter 56

Offering prayers behind a man who is a victim of Al-Fitan (trials and affections) or a heretic.

باب إِمَامَةِ الْمَفْتُونِ وَالْمُبْتَدِعِ

Al-Hasan said, "You can offer prayers behind that Imam and the sin of heresy will be against him." ​​
وَقَالَ الْحَسَنُ صَلِّ وَعَلَيْهِ بِدْعَتُهُ.
Sahih al-Bukhari 696
حَدَّثَنَا مُحَمَّدُ بْنُ أَبَانَ، حَدَّثَنَا غُنْدَرٌ، عَنْ شُعْبَةَ، عَنْ أَبِي التَّيَّاحِ، أَنَّهُ سَمِعَ أَنَسَ بْنَ مَالِكٍ، قَالَ النَّبِيُّ صلى الله عليه وسلم لأَبِي ذَرٍّ ‏ ‏‏.‏
"‏ اسْمَعْ وَأَطِعْ، وَلَوْ لِحَبَشِيٍّ كَأَنَّ رَأْسَهُ زَبِيبَةٌ ‏"
Anas bin Malik:

The Prophet (ﷺ) said to Abu-Dhar, "Listen and obey (your chief) even if he is an Ethiopian with a head like a raisin."