On the authority of Abu Hurairah (RA), the Messenger of Allah (SAW) said,
“When a person dies, his deeds come to an end except for three:
Ṣadaqah Jāriyah (a continuous charity),
knowledge from which benefit is gained,
or a righteous child who prays for him.”