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 'Ubaidullah.
Reference : Sahih Muslim 1839bIn-book reference : Book 33, Hadith 62USC-MSA web (English) reference : Book 20, Hadith 4534