It has been narrated on the authority of Abu Huraira that the Messenger of Allah (ﷺ) said:
It is obligatory for you to listen to the ruler and obey him in adversity and prosperity, in pleasure and displeasure, and even when another person is given (rather undue) preference over you.
Referencia y fuente completas
Sahih Muslim 1836
In-book : Book 33, Hadith 52
USC-MSA web (English) : Book 20, Hadith 4524 (deprecated)
Referencias, traducciones y números varían entre ediciones. El número de la URL identifica un registro de la app, no una numeración universal. Solo se muestran los grados proporcionados, sin una nueva evaluación.