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: ongoing charity, knowledge from which benefit is derived, or a righteous child who prays for him."