Abu Hurairah (RA):
Allah's Messenger (ﷺ) said: "When a son of Adam (i.e. any human being) dies his deeds are discontinued, with three exceptions: Sadaqah, whose benefit is continuous; or knowledge from which benefit continues to be reaped, or a righteous child who supplicates for him."
[Reported by Muslim].