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