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.