Abu Hurayrah, rahimahullah, reported that Allah’s Messenger (ﷺ) said, ”When a human being dies, all of his deeds are terminated except for three types an ongoing sadaqah, a knowledge (of Islam) from which others benefit, and a righteous child who makes dua for him.”