The Book on Government
33/8. Chapter:
The obligation of obeying leaders in matters that do not involve sin, but it is forbidden to obey them in sinful matters
Sahih Muslim
وَحَدَّثَنَا مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، حَدَّثَنَا مَعْمَرٌ، عَنْ هَمَّامِ بْنِ مُنَبِّهٍ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم بِمِثْلِ حَدِيثِهِمْ .
Hammam b. Munabbih has transmitted this hadith on the authority of Abu Huraira.
Reference : Sahih Muslim 1835fIn-book reference : Book 33, Hadith 50USC-MSA web (English) reference : Book 20, Hadith 4522