When a men dies his deeds comes to end except 3

وعن أبي هريرة رضي الله عنه أن رسول الله صلى الله عليه وسلم قال‏:‏ “إذا مات الأنسان انقطع عمله إلا من ثلاث‏:‏ صدقة جارية، أو علم ينتفع به، أو ولد صالح يدعو له‏”‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.
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].

Sunnah.com reference  : Book 7, Hadith 55
Arabic/English book reference  : Book 7, Hadith 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 things: Sadaqah Jariyah (ceaseless charity); a knowledge which is beneficial, or a virtuous descendant who prays for him (for the deceased).”

[Muslim].

Sunnah.com reference  : Book 13, Hadith 8
Arabic/English book reference  : Book 13, Hadith 1383

https://www.youtube.com/watch?v=FDW9eHJxSbk