The obligation of obeying leaders in matters that do not involve sin, but it is forbidden to obey them in sinful matters
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا وَكِيعٌ، وَأَبُو مُعَاوِيَةَ عَنِ الأَعْمَشِ، بِهَذَا الإِسْنَادِ نَحْوَهُ .
This hadith has been transmitted on the authority of A'mash.