Read the Arabic text and available English translation from Sahih al-Bukhari, with its supplied source reference.
Sahih al-Bukhari 2955
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
The 'Prophet said, "It is obligatory for one to listen to and obey (the ruler's orders) unless these orders involve one disobedience (to Allah); but if an act of disobedience (to Allah) is imposed, he should not listen to or obey it."
Full reference and source
Sahih al-Bukhari 2955
In-book : Book 56, Hadith 167
USC-MSA web (English) : Vol. 4, Book 52, Hadith 203 (deprecated)
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.