Riyad as-SalihinChapter 6Hadith 270
Full Sharh — Riyad as-Salihin 270
وعن أبي هريرة رضي الله عنه أن رسول الله صلى الله عليه وسلم قال: “إذا مات الأنسان انقطع عمله إلا من ثلاث: صدقة جارية، أو علم ينتفع به، أو ولد صالح يدعو له" ((رواه مسلم)).
English Translation
Abu Hurairah (May Allah be pleased with him) reported:: The Messenger of Allah (ﷺ) said, "When a man dies, his deeds come to an end, except for three: A continuous charity, knowledge by which people derive benefit, pious son who prays for him.".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of Visiting the Sick
Hadith Number
270