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.