Hadith on Tyranny: Hate a ruler’s actions, but do not rebel

Awf ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “The best of your rulers are those whom you love and they love you, who pray for you and you pray for them. The worst of your rulers are those whom you hate and they hate you, whom you curse and they curse you.” It was said, “Shall we confront them with swords?” The Prophet said, “No, as long as they establish prayer among you. If you find something hateful from them, you should hate their actions but not withdraw your hand from obedience.”

Source: Ṣaḥīḥ Muslim 1855

Grade: Sahih (authentic) according to Muslim

عَنْ عَوْفِ بْنِ مَالِكٍ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ خِيَارُ أَئِمَّتِكُمْ الَّذِينَ تُحِبُّونَهُمْ وَيُحِبُّونَكُمْ وَيُصَلُّونَ عَلَيْكُمْ وَتُصَلُّونَ عَلَيْهِمْ وَشِرَارُ أَئِمَّتِكُمْ الَّذِينَ تُبْغِضُونَهُمْ وَيُبْغِضُونَكُمْ وَتَلْعَنُونَهُمْ وَيَلْعَنُونَكُمْ قِيلَ يَا رَسُولَ اللَّهِ أَفَلَا نُنَابِذُهُمْ بِالسَّيْفِ فَقَالَ لَا مَا أَقَامُوا فِيكُمْ الصَّلَاةَ وَإِذَا رَأَيْتُمْ مِنْ وُلَاتِكُمْ شَيْئًا تَكْرَهُونَهُ فَاكْرَهُوا عَمَلَهُ وَلَا تَنْزِعُوا يَدًا مِنْ طَاعَةٍ

1855 صحيح مسلم كتاب الإمارة باب خيار الأئمة وشرارهم