Sahih al-Bukhari 7054
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ رَأَى مِنْ أَمِيرِهِ شَيْئًا يَكْرَهُهُ فَلْيَصْبِرْ عَلَيْهِ، فَإِنَّهُ مَنْ فَارَقَ الْجَمَاعَةَ شِبْرًا فَمَاتَ، إِلاَّ مَاتَ مِيتَةً جَاهِلِيَّةً "
Narrated Ibn `Abbas:
The Prophet (ﷺ) said, "Whoever notices something which he dislikes done by his ruler, then he should be patient, for whoever becomes separate from the company of the Muslims even for a span and then dies, he will die as those who died in the Pre-lslamic period of Ignorance (as rebellious sinners). (Fath-ul-Bari page 112, Vol. 16)
Full reference and source
Sahih al-Bukhari 7054 In-book : Book 92, Hadith 7 USC-MSA web (English) : Vol. 9, Book 88, Hadith 177 (deprecated)
View source on Sunnah.com (opens in a new tab)