Sahih Muslim Book 020, Hadith Number 4520.

Chapter : Obedience to the ruler is forbidden in matters sinful, but is otherwise obligatory.

This hadith has been narrated on the authority of Abu Huraira through another chain of transmitters.

Related Hadith(s)