(27) The Book of Oaths
كتاب الأيمان
(11) Chapter: The reward of a slave who is sincere towards his master and worships Allah properly
(11) باب ثَوَابِ الْعَبْدِ وَأَجْرِهِ إِذَا نَصَحَ لِسَيِّدِهِ وَأَحْسَنَ عِبَادَةَ اللَّهِ ‏‏
Sahih Muslim 1667 

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.
وَحَدَّثَنَا مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، حَدَّثَنَا مَعْمَرٌ، عَنْ هَمَّامِ بْنِ مُنَبِّهٍ، قَالَ هَذَا مَا حَدَّثَنَا أَبُو هُرَيْرَةَ، عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم فَذَكَرَ أَحَادِيثَ مِنْهَا وَقَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ نِعِمَّا لِلْمَمْلُوكِ أَنْ يُتَوَفَّى يُحْسِنُ عِبَادَةَ اللَّهِ وَصَحَابَةَ سَيِّدِهِ نِعِمَّا لَهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 1667
In-book reference : Book 27, Hadith 71
USC-MSA web (English) reference : Book 15, Hadith 4101
  (deprecated numbering scheme)