The Messenger of Allah ﷺ said, "The likeness of the believer and death is like that of a man who has three friends.One of them is his wealth, which says, 'Take what you wish and leave what you wish.'The second says, 'I am with you. I will carry you, but when you die I will leave you.'The third says, 'I am with you. I enter with you and I depart with you.'So the first is his wealth, the second is his family and children, and the third is his deeds."
قال رسول الله ﷺ: مثل المؤمن ومثل الموت كمثل رجل له ثلاثة أخلاء، أحدهم ماله قال: خذ ما شئت ودع ما شئت، وقال الآخر: أنا معك أحملك، فإذا مت تركتك، وقال الآخر: أنا معك أدخل معك وأخرج معك، فأحدهما ماله، والآخر أهله وولده، والآخر عمله.
No references are available.
Bazzar (3272) and Hakim (1/74, 372) both narrated it through routes from Hammad bin Salama, from Simak bin Harb, from Numan bin Bashir, who mentioned it. Its chain is hasan because of Simak bin Harb, for his hadith is hasan. It has also been narrated from Simak, from Numan bin Bashir, as a mawquf report. The ruling belongs to whoever connects the chain.