It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "When Allah, the Mighty and Majestic, intends good for a servant, He sweetens him before his death." It was asked: What is meant by sweetening him? He said: "He grants him the ability to do a righteous deed before his death."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7694