PROPHET MUHAMMAD (ﷺ) said: There is no obedience if it involves disobedience towards Allah; Obedience is only in that which is right and proper.
QuranHadees.com