Abu Qatada reported,

The Messenger of Allah ﷺ said, "The best things a man can leave behind after his death are three. A righteous child who prays for him, an ongoing charity whose reward reaches him, and knowledge that is acted upon after him."

Azami 3549

Sahih

عن أبي قتادة قال

قال رسول الله ﷺ: خير ما يخلف الرجل من بعده ثلاث: ولد صالح يدعو له، وصدقة تجري يبلغه أجرها، وعلم يعمل به من بعده.

الأعظمي 3549صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Dying person
Section
What benefits the deceased after death
Numbering
Jami al-Kamil 3549 (2nd edition)
Azami 3549