Hadithcore
Riyad as-Salihin, 662

Ibn 'Umar (May Allah be pleased with them) reported:

The Prophet (ﷺ) said, "It is obligatory upon a Muslim to listen (to the ruler) and obey whether he likes it or not, except when he is ordered to do a sinful thing; in such case, there is no obligation to listen or to obey." <b>[Al-Bukhari and Muslim]</b>.

وعن ابن عمر رضي الله عنهما عن النبى صلى الله عليه وسلم قال‏:‏ “على المرء المسلم السمع والطاعة فيما أحب وكره، إلا أن يؤمر بمعصية، فإذا أمر بمعصية فلا سمع ولا طاعة” ‏(‏‏(‏متفق عليه‏)‏‏)‏

References1 variant
In-Book Reference
Introduction, Hadith 662
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) A Muslim should obey those in authority in what he likes or dislikes, unless he is ordered to commit a sin, in which case he should not obey them.<br> 2) Invalidity of the approach of those who say: We only obey those in authority in things commanded by Allah Almighty. This is because the Shariah prescribes that we should obey them to the best of our ability, and because disobedience to them leads to many public evils.<br> <br> <b>Benefit:</b><br> The commands of those in authority fall under three categories:<br> First: They command what Allah commanded. In such a case, obedience is due to them for two reasons:<br> because Allah commanded it, and because they commanded it.<br> Second: They command the commission of a sin. In such a case, they should neither be listened to nor obeyed with regard to that sin, yet obedience is due to them in other than sin.<br> Third: They command something that does not involve divine commands or prohibitions. In such a case, they are to be obeyed because obedience brings about welfare, unity, and mercy.
Related hadiths5
Compare isnād across 5 related chains →