Sahih Muslim, Book 27, Hadith 71 (Muslim 4285)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

It is good for a slave that he worships Allah well, and serves his master (well). It is good for him.