Hadith
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 (ongoing charity); beneficial knowledge, or a virtuous descendant who prays for him (for the deceased)."
Authentic
Sahih Muslim