Hadith 5288
وَعَنْ أَنَسٍ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِنَّ اللَّهَ تَعَالَى إِذَا أَرَادَ بِعَبْدٍ خَيْرًا اسْتَعْمَلَهُ» . فَقِيلَ: وَكَيْفَ يَسْتَعْمِلُهُ يَا رَسُولَ اللَّهِ؟ قَالَ: «يُوَفِّقُهُ لِعَمَلٍ صَالِحٍ قَبْلَ الموتِ» . رَوَاهُ التِّرْمِذِيّ
It is narrated from Anas (may Allah be pleased with him) that the Prophet (peace and blessings of Allah be upon him) said: "Indeed, when Allah intends good for a servant, He employs him in (acts of obedience)." It was asked: O Messenger of Allah! How does He employ him? He said: "He grants him the ability to do righteous deeds before death." Sahih, narrated by al-Tirmidhi.