كتاب المقدمات
The Book of Miscellany
(55)
Chapter: Excellence of Leading an Ascetic Life, and Virtues of Simple Life
(55)
- باب فضل الزهد في الدنيا و الحث على التقلل منها و فضل الفقر
Riyad as-Salihin 460
Anas (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said: "Three (things) follow a dead person: Members of his family, his property and his deeds. Two of them return; and one remains with him. The people and his wealth return; his deeds remain with him".

[Al-Bukhari and Muslim].

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