عن عوف بن مالك رضي الله عنه مرفوعاً: «خِيَارُ أئمتكم الذين تحبونهم ويحبونكم، وتُصَلُّون عليهم ويصلون عليكم. وشِرَارُ أئمتكم الذين تبُغضونهم ويبغضونكم، وتلعنونهم ويلعنونكم!»، قال: قلنا: يا رسول الله، أفلا نُنَابِذُهُم؟ قال: «لا، ما أقاموا فيكم الصلاة. لا، ما أقاموا فيكم الصلاة».
This Hadīth indicates that Muslim leaders may be righteous and may be unrighteous and disobedient to Allah. However, it is not permissible to rebel against them as long as they uphold the rituals of Islam, the most important of which is the prayer. In other words, as long as they do not prevent (congregational) prayer.
Download for free and never miss a prayer again