It is narrated from Sayyiduna Ali (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Obedience to any human being is not permissible in disobedience to Allah."
Hadith Referenceمسند احمد / مسند الخلفاء الراشدين / 1065
Hadith Gradingحکم دارالسلام:إسناده صحيح، خ: 4340 ، م : 1840