It was narrated from Ibn ‘Umar that the Messenger of Allah (ﷺ) said:“The Muslim is obliged to obey (the ruler) whether he likes it or not, unless he is commanded to commit an act of disobedience. If he is commanded to commit a sin then he should neither listen nor obey.”
Hadith No. 2864
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih Isnaad
Muhammad Fouad Abd al-Baqi:
Sahih Isnaad
Shuaib Al Arnaut:
Sahih
Zubair Ali Zai:
Sahih Muslim