The Messenger of Allah ﷺ said, "Whoever sees something from his ruler that he dislikes should be patient, for whoever departs from the community by even a hand's span and then dies has died a death of ignorance."
حدثنا حسن بن الربيع حدثنا حماد بن زيد عن الجعد أبي عثمان عن أبي رجاء
قال رسول الله ﷺ من رأى من أميره شيئا يكرهه فليصبر فإنه من خالف الجماعة شبرا فمات فميتته جاهلية
Its isnad is sahih. Hasan bin Rabi bin Sulayman Bajali is trustworthy, an upright and devout man. The compilers of the six books narrated from him, and Bukhari mentioned him in Kabir 1/2/292.Jaad Abu Uthman is Jaad bin Dinar Yashkuri, who is trustworthy. Ibn Main and Abu Dawud and others confirmed his trustworthiness, and Bukhari mentioned him at 1/2/238.The hadith was narrated by Muslim, 2:89, from Hasan bin Rabi with his isnad.