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

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."

أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا يَعْقُوبُ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي صَالِحٍ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ عَلَيْكَ بِالطَّاعَةِ فِي مَنْشَطِكَ وَمَكْرَهِكَ وَعُسْرِكَ وَيُسْرِكَ وَأَثَرَةٍ عَلَيْكَ ‏" ‏ ‏.‏

sunnah.com