Ṣaḥīḥ Muslim Ḥadīth [1631] – When the Human Being Dies..

It is reported on the authority of Abū Hurayrah (may Allāh be pleased with him) that the Messenger of Allāh (peace and blessings of Allāh be upon him) said: “When the human being dies, his deeds come to an end except for three: ongoing charity, beneficial knowledge, or a righteous child who prays for him.”

Commentary by Shaykh al-‘Uthaymīn, Ḥāfiẓ Ṣalāḥuddīn Yūsuf, Dārussalām, Dakwah Corner Publications added.