It is narrated from Sayyiduna Imran bin Husayn (may Allah be pleased with him) that he asked Sayyiduna al-Hakam al-Ghifari (may Allah be pleased with him) - and both of them were among the eminent Companions of the Prophet (peace and blessings be upon him): "Do you remember the day when the Messenger of Allah (peace and blessings be upon him) said: 'There is no obedience to anyone in disobedience to Allah'?" He replied: "Yes." At this Sayyiduna Imran (may Allah be pleased with him) called out: 'Allahu akbar, Allahu akbar' (Allah is the Greatest, Allah is the Greatest). In another narration Sayyiduna Imran bin Husayn (may Allah be pleased with him) said: I heard the Messenger of Allah (peace and blessings be upon him) saying: "Obeying anyone in an act of disobedience to Allah is not obligatory." In this connection it is narrated from Abdullah bin al-Samit (may Allah have mercy on him) that Ziyad wanted to send Sayyiduna Imran bin Husayn (may Allah be pleased with him) as governor of Khurasan, but he refused. His companions blamed him for it and said: "You have turned down an offer like the governorship of Khurasan!" He said to them: "By Allah, I do not at all wish that you enjoy its coolness and comforts while I burn in the heat of its consequences. I fear that when I am lined up facing the enemy and some (wrong) order of Ziyad comes, then if I go forward in obeying it I will perish, and if I hold back my neck will be struck (that is, I will be punished for disobeying Ziyad's unlawful order)." So Ziyad sent Sayyiduna al-Hakam bin Amr al-Ghifari (may Allah be pleased with him) to this post, and he set off in compliance with his order. On this occasion Sayyiduna Imran (may Allah be pleased with him) said: "Is there anyone who will call Sayyiduna al-Hakam (may Allah be pleased with him) to me?" So a messenger went and brought him. Sayyiduna Imran bin Husayn (may Allah be pleased with him) asked him: "Did you hear the Messenger of Allah (peace and blessings be upon him) saying: 'Obedience to anyone is not obligatory in disobedience'?" He said: "Yes." Then Sayyiduna Imran (may Allah be pleased with him) said: 'Allahu akbar wa lillahi al-hamd' (Allah is the Greatest, and all praise belongs to Allah). In another route these words are narrated: "There is no obedience to any created being in disobedience to Allah, the Mighty and Majestic." It is narrated from al-Hasan al-Basri (may Allah have mercy on him) that when Ziyad appointed Sayyiduna al-Hakam al-Ghifari (may Allah be pleased with him) as commander of an army, Sayyiduna Imran bin Husayn (may Allah be pleased with him) met him in public and asked: "Do you know why I have come?" He asked: "Why?" Sayyiduna Imran (may Allah be pleased with him) said: "Do you remember the saying of the Messenger of Allah (peace and blessings be upon him) about the man whose commander ordered him to jump into the fire? Then that man was held back, and when the Prophet (peace and blessings be upon him) was informed, he (peace and blessings be upon him) said: 'Had he jumped into it, both of them (the one giving the order and the one obeying it) would have entered Hell together. There is no obedience in disobedience to Allah.'" He replied: "Yes." Sayyiduna Imran (may Allah be pleased with him) said: "My purpose was only to remind you of this hadith." In another narration, Sayyiduna Imran bin Husayn (may Allah be pleased with him) advised Sayyiduna al-Hakam (may Allah be pleased with him) and then asked: "Do you remember the day when the Messenger of Allah (peace and blessings be upon him) said: 'There is no obedience at all to any created being in disobedience to Allah, the Blessed and Exalted'?" He said: "Yes." So Sayyiduna Imran (may Allah be pleased with him) raised the cry of takbir. Imam al-Bazzar (may Allah have mercy on him) has narrated it in his Musnad, and he said that we do not know this hadith with a better chain than this.
Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) set out from Syria to perform Hajj, and on reaching Madinah he came to Sayyiduna Uthman bin Affan (may Allah be pleased with him) and said: "Shall I not tell you a hadith that I heard from the Messenger of Allah (peace and blessings be upon him)?" He replied: "Of course." So Sayyiduna Ubadah (may Allah be pleased with him) said: "I heard the Messenger of Allah (peace and blessings be upon him) saying: 'Soon rulers will be imposed over you who will command you to do things that you recognise as good (in the Shari'ah), but they themselves will do things that you know to be (evil); such people are owed no obedience from you.'" Likewise, in the narration of Imam Abu Ya'la al-Mawsili, Sayyiduna Ubadah (may Allah be pleased with him) said: "I heard Abu al-Qasim Muhammad (peace and blessings be upon him) saying: 'There is no obedience to one who disobeys Allah.'" And in the narration of Imam al-Bazzar, while Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) was in Syria, some donkeys carrying wine passed by there. He took a knife from the market and slit those waterskins open, then said: "We pledged allegiance to the Messenger of Allah (peace and blessings be upon him) to hear and obey," then after mentioning the whole hadith he said: "I heard the Messenger of Allah (peace and blessings be upon him) saying: 'After me, the affairs of yours will be in charge of people who will present to you things that you regard as disliked, and will reject things that you recognise (as good). So there is no obedience to one who disobeys Allah.'" In the chain of this last narration, the narrator Yusuf is da'if (weak).
It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "O Allah, whoever commands my Ummah to do something that You did not command it, and he commanded them to do it, then he is free from it (from its burden or reckoning)."
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 do you say if there are rulers over us who neither act on your Sunnah nor accept your command? What do you command me concerning them?" At this the Messenger of Allah (peace and blessings be upon him) said: "There is no obedience to one who has disobeyed Allah."
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لجهالة عمرو بن زنيب
Hadith Takhrij«قال الهيثمي: فيه عمرو بن زنيب ولم أعرفه وبقية رجاله رجال الصحيح (نقله محقق المطالب العالية 2162)؛ وأخرجه أحمد من طريق عبد الصمد به» «أخرجه مسند أحمد برقم: 12813، وأخرجه فتح الباري برقم: 6725، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 9141، وأخرجه الأحاديث المختارة برقم: 2341»