Jami’ al-Tirmidhi – Hadith No : 1376

Abu Hurairah, may Allah be pleased with him, narrated that the Messenger of Allah (ﷺ) said: “When a person dies, his deeds are cut off except for three: Continuing charity, knowledge that others benefited from, and a righteous son who supplicates for him.”

Hadith In Arabic Text :

حدثنا علي بن حجر، أخبرنا إسماعيل بن جعفر، عن العلاء بن عبد الرحمن، عن أبيه، عن أبي هريرة، رضى الله عنه أن رسول الله صلى الله عليه وسلم قال ‏”‏ إذا مات الإنسان انقطع عمله إلا من ثلاث صدقة جارية وعلم ينتفع به وولد صالح يدعو له ‏”‏ ‏.‏ قال أبو عيسى هذا حديث حسن صحيح ‏.‏

Chapter : The Chapters On Judgements From The Messenger of Allah – كتاب الأحكام عن رسول الله صلى الله عليه وسلم