مسائل القضاء والقدر
‘Umar al-Juma‘i (may Allah be pleased with him) reported that the Messenger of Allah (may Allah's peace and blessings be upon him) said: "When Allah wills good for a slave, He uses him before he dies." A man asked: "What does that mean, to use him?" The Messenger of Allah (may Allah's peace and blessings be upon him) said: "Allah, the Exalted, guides him to do righteous deeds before he dies, then He takes his soul while he is in that state."  
عن عمر الجمعي -رضي الله عنه-: أن رسول الله -صلى الله عليه وسلم- قال: «إذا أراد اللهُ بعبدٍ خيرًا استعملَه قبل موتِه» فسأله رجلٌ من القوم: ما استعملَه؟ قال: «يهديه اللهُ عزَّ وجلَّ إلى العمل الصالح قبل موتِه، ثم يقبضه على ذلك».

شرح الحديث :


When Allah, the Exalted, wills good for one of his slaves, He guides him to do righteous deeds before he dies so that he dies whilst doing those righteous deeds. Thus, he is blessed with a good end and hence enters Paradise.  

ترجمة نص هذا الحديث متوفرة باللغات التالية