Abu Hurairah reported,

The Messenger of Allah ﷺ said, "The servant says, 'My wealth, my wealth.' Yet he has only three things from his wealth. What he eats and consumes, what he wears and wears out, and what he gives away and thereby stores up for himself. Everything beyond that will be gone, and he leaves it behind for others."

Muslim 7423

Sahih

و حدثنيه أبو بكر بن إسحق أخبرنا ابن أبي مريم أخبرنا محمد بن جعفر أخبرني العلاء بن عبد الرحمن بهذا الإسناد مثله

مسلم 7423صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Asceticism and heart-softening matters
Chapter
World is a prison for the believer and a paradise for the disbeliever
Numbering
Darussalam 7423
Muslim 7423