The Book on Government
Hadith 1835 a, b

Sahih Muslim 1835 a, b

Book 33: The Book on Government

صحيح مسلم

Chapter 8The obligation of obeying leaders in matters that do not involve sin, but it is forbidden to obey them in sinful matters

باب وُجُوبِ طَاعَةِ الأُمَرَاءِ فِي غَيْرِ مَعْصِيَةٍ وَتَحْرِيمِهَا فِي الْمَعْصِيَةِ ‏‏

1835 a, bSahih Muslim 1835 a, bSahih
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، أَخْبَرَنَا الْمُغِيرَةُ بْنُ عَبْدِ الرَّحْمَنِ الْحِزَامِيُّ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ مَنْ أَطَاعَنِي فَقَدْ أَطَاعَ اللَّهَ وَمَنْ يَعْصِنِي فَقَدْ عَصَى اللَّهَ وَمَنْ يُطِعِ الأَمِيرَ فَقَدْ أَطَاعَنِي وَمَنْ يَعْصِ الأَمِيرَ فَقَدْ عَصَانِي ‏"‏ ‏.‏ وَحَدَّثَنِيهِ زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا ابْنُ عُيَيْنَةَ، عَنْ أَبِي الزِّنَادِ، بِهَذَا الإِسْنَادِ وَلَمْ يَذْكُر " وَمَنْ يَعْصِ الأَمِيرَ فَقَدْ عَصَانِي ‏"‏ ‏.‏

It has been narrated on the authority of Abu Huraira that the Holy prophet (may peace be upon him) said: Whoso obeys me obeys God, and whoso disobeys me disobeys God. Whoso obeys the commander (appointed by me) obeys me, and whoso disobeys the commander disobeys me. The same tradition transmitted by different persons omits the portion: And whose disobeys the commander disobeys me.

Grade:
Sahihصحيح
Reference:
Sahih Muslim 1835 a, b
In-book reference:
Book 33, Hadith 46

Text, translation and grading from Sunnah.com.