Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates this statement of the Prophet Muhammad (peace and blessings be upon him): "When Allah Almighty intends good for a servant, He uses him." It was asked: O Messenger of Allah! How does He use him? The Prophet Muhammad (peace and blessings be upon him) said: "He grants him the ability to do righteous deeds before his death."
Hadith Referenceصحیح ابن حبان / كتاب البر والإحسان / 341
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الظلال» (397 - 399).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين.