Mishkat al-Masabih
Mishkat al-Masabih 3349
Arabic hadith text
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «نِعِمَّا لِلْمَمْلُوكِ أَنْ يَتَوَفَّاهُ اللَّهُ بِحُسْنِ عِبَادَةِ رَبِّهِ وَطَاعَة سَيّده نعما لَهُ»
Translation
Abu Hurayrah reported that the Messenger of God said: ‘How excellent it is for a slave if God takes him in death while he has worshipped his Lord well and obeyed his master! How excellent for him!’