Hadith 8233

وَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " نِعِمَّا لِلْمَمْلُوكِ أَنْ يُتَوَفَّى بِحُسْنِ عِبَادَةِ اللَّهِ وَصَحَابَةِ سَيِّدِهِ ، نِعِمَّا لَهُ " .
And the Noble Prophet (peace and blessings be upon him) said: How excellent it is for a slave if Allah causes him to die while he is engaged in the best worship of Allah and in obedience to his master.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 8233
Hadith Grading حکم دارالسلام: إسناده صحيح، خ: 2549، م: 1667