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
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا وَكِيعٌ، وَأَبُو مُعَاوِيَةَ عَنِ الأَعْمَشِ، بِهَذَا الإِسْنَادِ نَحْوَهُ .
This hadith has been transmitted on the authority of A'mash.
Reference : Sahih Muslim 1840cIn-book reference : Book 33, Hadith 65USC-MSA web (English) reference : Book 20, Hadith 4537