Sahih al-Bukhari · Hadith 7053

Afflictions and the End of the World

Narrated Ibn `Abbas: The Prophet (ﷺ) said, "Whoever disapproves of something done by his ruler then he should be patient, for whoever disobeys the ruler even a little (little = a span) will die as those who died in the Pre-Islamic Period of Ignorance. (i.e. as rebellious Sinners)