كتاب المقدمات
The Book of Miscellany
(11)
Chapter: The Struggle (in the Cause of Allah)
(11)
- باب المجاهدة
Riyad as-Salihin 104
Anas (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "Three follow a dead body: members of his family, his possessions and his deeds. Two of them return and one remains with him. His family and his possessions return; his deeds remain with him".

[Al-Bukhari and Muslim].

العاشر عن أنس رضي الله عنه عن رسول الله صلى الله عليه وسلم قال‏:‏ ‏ "‏ يتبع الميت ثلاثة‏:‏ أهله وماله وعمله؛ فيرجع اثنان ويبقى واحد‏:‏ يرجع أهله وماله، ويبقى عمله‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 104
In-book reference : Introduction, Hadith 104