Obedience to the Ruler
The Prophet (sal Allahu alaihi wa sallam) said, “It is obligatory upon a Muslim to listen (to the ruler) and obey whether he likes it or not, except when he is ordered to do a sinful thing; in such case, there is no obligation to listen or to obey.”
[Sahih Al-Bukhari and Muslim]
Allah says (interpretation of the meaning): “O you who believe! Obey Allah and obey the Messenger (Muhammad (sal Allahu alaihi wa sallam)), and those of you (Muslims) who are in authority.” (4:59)
The above Hadith makes clear the parameters of the Muslims obedience to their Muslim rulers.
The honor of the latter is bound up with their surrender to the Command of Allah and His Messenger (sal Allahu alaihi wa sallam). Otherwise, apart from the torment in the Hereafter, they will also be subjected to humiliation in this world.
And Allah knows best!