‘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.
Explanation in Arabic
إن الله تعالى إذا أراد بعبد من عباده خيرا وفقه لعمل صالح قبل موته حتى يموت على ذلك العمل، فتحصل له حسن الخاتمة، فيدخل الجنة.
إثبات إرادة الله -عز وجل-.
الله -عز وجل- يهدي من يشاء إلى الأعمال الصالحة ويوفقه إليها.
سعة رحمة الله -تعالى- بعباده.
من علامات حسن الخاتمة أن يموت العبد وهو مشتغل بعمل صالح.
أن العبرة بالخواتيم.
Scholars’ grades
Original grading term, without a named scholar: صحيح