Abdullah bin Abbas reported,

The Prophet ﷺ said, "Whoever sees something from his ruler that he dislikes, let him be patient, for no one departs from the community by even a hand's span and then dies except that he dies a death of ignorance."

Bukhari 7143

Sahih

حدثنا سليمان بن حرب حدثنا حماد عن الجعد عن أبي رجاء

عن ابن عباس يرويه قال

قال النبي ﷺ من رأى من أميره شيئا فكرهه فليصبر فإنه ليس أحد يفارق الجماعة شبرا فيموت إلا مات ميتة جاهلية

البخاري 7143صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Rulings
Chapter
Hearing and obeying the imam so long as it is not disobedience
Numbering
Darussalam 7143
Bukhari 7143