The Ruling on the Hadith: (Pray behind every righteous and wicked person)
Machine translationRead the Arabic original
Pray behind every righteous and wicked person
صل خلف كل بر وفاجرAnswer: The hadith is not authentic; it is weak according to the scholars. However, its meaning is correct according to the scholars: one prays behind every righteous and wicked person. This is the correct position. So you pray behind the rulers and strive with them, even if they are people of sins, and you pray behind the imams of the mosques, even if they commit sins. But you do not pray behind a disbeliever. If he is a disbeliever who worships idols, calls upon the dead, seeks aid from the dead, or insults the religion, you do not pray behind him. But as long as he has sins but is a Muslim, you pray behind him and strive with him, if he is a ruler in the jihad against the disbelievers. Yes.
Source
binbaz.org.sa
The Arabic text is copied verbatim from the original source, without any edits.
