The Prophet Muhammad (peace be upon him) said "When a person dies, his actions come to an end except in respect to three things that he leaves behind: a continuous charity, beneficial knowledge that helps others, and righteous children who pray for him"