حَدَّثَنَا إِسْحَاقُ بْنُ أَبِي إِسْرَائِيلَ، حَدَّثَنَا عَبْدُ الصَّمَدِ، حَدَّثَنَا حَرْبٌ، حَدَّثَنَا يَحْيَى، حَدَّثَنِي عَمْرُو بْنُ زَيْنَبَ، أَنَّ أَنَسَ بْنَ مَالِكٍ حَدَّثَهُ، أَنَّ مُعَاذًا قَالَ: يَا رَسُولَ اللَّهِ، أَرَأَيْتَ إِنْ كَانَ عَلَيْنَا الْأُمَرَاءُ لَا يَسْتَنُّونَ بِسُنَّتِكَ، وَلَا يَأْخُذُونَ بِأَمْرِكَ، فَمَا تَأْمُرُنِي فِي أَمْرِهِمْ؟ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم: «لَا طَاعَةَ لِمَنْ لَمْ يُطِعِ اللَّهَ»
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that Sayyiduna Mu'adh (may Allah be pleased with him) said: "O Messenger of Allah (peace and blessings be upon him)! What is your view: if rulers are set over us who neither follow your Sunnah nor act according to your command, then what do you command me regarding them?" The Messenger of Allah (peace and blessings be upon him) said: "There is no obedience owed to one who does not obey Allah Almighty."