Riyad as-Saliheen 949
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."
[Muslim].
وعن أبي هريرة رضي الله عنه أن رسول الله ﷺ قال: “إذا مات الأنسان انقطع عمله إلا من ثلاث: صدقة جارية، أو علم ينتفع به، أو ولد صالح يدعو له" ((رواه مسلم)).
Classification
Sahih (Authentic)
References
Riyad as-Saliheen 949
Riyad as-Saliheen Book of Visiting the Sick, Hadith 56