It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: "When a person dies, his deeds come to an end except for three things: ongoing charity, knowledge from which people benefit, and a righteous child who prays for him."