Anas ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “Three things follow a deceased person. Two of them return and one remains. His family, his wealth, and his deeds follow him. His family and wealth return, but his deeds remain.”
Source: Ṣaḥīḥ al-Bukhārī 6149, Ṣaḥīḥ Muslim 2960
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عن أنس بن مالك قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَتْبَعُ الْمَيِّتَ ثَلَاثَةٌ فَيَرْجِعُ اثْنَانِ وَيَبْقَى وَاحِدٌ يَتْبَعُهُ أَهْلُهُ وَمَالُهُ وَعَمَلُهُ فَيَرْجِعُ أَهْلُهُ وَمَالُهُ وَيَبْقَى عَمَلُهُ
6149 صحيح البخاري كتاب الرقاق باب سكرات الموت
2960 صحيح مسلم كتاب الزهد والرقائق