It was narrated from Abu Hurairah that the Messenger of Allah said:"When a man dies all his good deeds come to an end except three: Ongoing charity (Sadaqah Jariyah), beneficial knowledge and a righteous son who prays for him
“unhon ne poocha hai ke abu huraira, abu huraira reported that allah messenger once said: "when a human being dies, all of his deeds are terminated, except for three types:”