Abdullah bin al-Samit (may Allah have mercy on him) said: Sayyiduna Imran bin al-Husayn (may Allah be pleased with him) asked Sayyiduna al-Hakam bin Amr (may Allah be pleased with him): Did you hear the Messenger of Allah (peace and blessings be upon him) saying: "There is no obedience to anyone in disobedience to Allah"? Al-Hakam (may Allah be pleased with him) said: Yes.
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3137