'Anas narrated that the Messenger of Allah (s.a.w) said:
"When Allah wants good for a slave, He puts him in action." It was said: "How does he put him in action O Messenger Of Allah?" He said: "By making him meet up with the righteous deeds before death." (TH)
English reference (TH): Vol. 4, Book 6, Hadith 2142 (TH)
Arabic reference (TH): Book 32, Hadith 2292 (TH)