Sunan an-Nasa'i, Book 39, Hadith 7 (Nasa'i 4165)

It was narrated from Abu Hurairah that the Messenger of Allah said:

"You have to obey when you feel energetic and when you feel tired, during your ease and your hardship, and when others are preferred over you."