It is narrated from Sayyiduna Imran bin Husayn (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "There is no obedience to any created being in disobedience to Allah."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15662