Hazrat Abu Huraira (Allah be well pleased with him) reported Allah's Messenger (peace and blessings be upon him) as saying: When a man dies, his acts come to an end, but three, recurring charity, or knowledge (by which people) benefit, or a pious son, who prays for him (for the deceased). (Muslim)