Sahih Muslim 4754
صحيح مسلم#4754SahihIt 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
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih Muslim is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 33:52