Read the Arabic text and available English translation from Riyad as-Salihin, with its supplied source reference.
Riyad as-Salihin · App record 663
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وعن ابن عمر رضي الله عنهما عن النبى صلى الله عليه وسلم قال: “على المرء المسلم السمع والطاعة فيما أحب وكره، إلا أن يؤمر بمعصية، فإذا أمر بمعصية فلا سمع ولا طاعة” ((متفق عليه))
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."
[Al-Bukhari and Muslim].
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.