عن ابن عمر رضي الله عنهما مرفوعاً: «على المرء المسلم السمع والطاعة فيما أحب وكَرِهَ، إلا أن يُؤمر بمعصية، فإذا أُمِرَ بمعصية فلا سمع ولا طاعة».
According to this Hadīth, it is mandatory to listen to and obey the ruler, whether or not one likes his commands. Only if one is ordered to commit a sin, he is not under obligation to listen and obey concerning this specific order.
Download for free and never miss a prayer again