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]. (TR)
App reference (TR): Book 7, Hadith 55 (TR)
Arabic/English book reference (TR): Book 7, Hadith 949 (TR)