Umm Salamah reported: The Messenger of Allah, peace and blessings be upon him, said, “There will be rulers from whom you will see both goodness and corruption. One who recognizes their evil and hates it will maintain his innocence, but one who is pleased with it and follows them will be sinful.” It was said, “Shall we not fight them?” The Prophet said, “No, as long as they pray.”
Source: Ṣaḥīḥ Muslim 1854
Grade: Sahih (authentic) according to Muslim
Imam al-Tahawi commented, “We do not rebel against our leaders or those in charge of our affairs, even if they are tyrannical. We do not supplicate against them, nor withdraw from obedience to them. We view obedience to them as obedience to Allah Almighty, an obligation, as long as they do not order disobedience to Allah. We supplicate on their behalf for righteousness and wellness.”
Source: al-ʻAqīdah al-Ṭaḥāwīyah 1/68
عَنْ أُمِّ سَلَمَةَ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ سَتَكُونُ أُمَرَاءُ فَتَعْرِفُونَ وَتُنْكِرُونَ فَمَنْ عَرَفَ بَرِئَ وَمَنْ أَنْكَرَ سَلِمَ وَلَكِنْ مَنْ رَضِيَ وَتَابَعَ قَالُوا أَفَلَا نُقَاتِلُهُمْ قَالَ لَا مَا صَلَّوْا
1854 صحيح مسلم كتاب الإمارة باب وجوب الإنكار على الأمراء فيما يخالف الشرع وترك قتالهم ما صلوا ونحو ذلك
قال الإمام الطحاوي وَلَا نَرَى الْخُرُوجَ عَلَى أَئِمَّتِنَا وَوُلَاةِ أُمُورِنَا وَإِنْ جَارُوا وَلَا نَدْعُو عَلَيْهِمْ وَلَا نَنْزِعُ يَدًا مِنْ طَاعَتِهِمْ وَنَرَى طَاعَتَهُمْ مِنْ طَاعَةِ اللَّهِ عَزَّ وَجَلَّ فَرِيضَةً مَا لَمْ يَأْمُرُوا بِمَعْصِيَةٍ وَنَدْعُو لَهُمْ بِالصَّلَاحِ وَالْمُعَافَاةِ
1/68 العقيدة الطحاوية