Sayyiduna Imran bin Husayn (may Allah be pleased with him) asked Sayyiduna al-Hakam bin Amr al-Ghifari (may Allah be pleased with him): Did you hear the Messenger of Allah (peace and blessings be upon him) say: "There is no obedience to any created being in disobedience to Allah"? He said: Yes.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15458