Read the Arabic text and available English translation from Sunan Ibn Majah, with its supplied source reference.
English : Vol. 4, Book 24, Hadith 2864
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
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."
Full reference and source
English : Vol. 4, Book 24, Hadith 2864
Arabic : Book 24, Hadith 2974
References, translations and numbering differ between editions. A URL number is an internal app record identifier, not universal hadith numbering. Only supplied grading is displayed; no new authenticity assessment is made.