It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When Allah Almighty intends good for a servant, He puts him to work." The Companions asked: And how does Allah put him to work? He (peace and blessings be upon him) said: "He grants him the ability to do a righteous deed before his death."
Like the narration of Ibn Abi Adi (may Allah have mercy on him) from Humayd (may Allah have mercy on him), it was also narrated by Yazid bin Harun (may Allah have mercy on him), Abd al-Wahhab al-Thaqafi (may Allah have mercy on him) and Isma'il bin Ja'far (may Allah have mercy on him).