The prophet peace be upon him said: “When the son of Adam dies, his deeds come to an end except for three things: Sadaqah Jariyah (continuous charity); A knowledge which gives benefit, or a righteous child who prays for him (the deceased)” Muslim
قال رسول الله صلى الله عليه وسلم: “إذا مات ابن آدم انقطع عمله إلا من ثلاث: صدقة جارية، أو علم ينتفع به، أو ولد صالح يدعو له” رواه مسلم