The Prophet (may Allah's peace and blessings be upon him) informed that the deeds of a person come to a halt when he dies. No good deeds are recorded for him after death, except for these three things, as he was the cause behind them: First: Charity whose reward is enduring, permanent, and ceaseless, like endowment, building mosques, digging wells, etc. Second: Knowledge from which people draw benefits, like authoring books of knowledge or teaching knowledge to someone, who in turn disseminates this knowledge after his teacher's death. Third: A pious, believing child who supplicates for his parents.