It is narrated from Sayyiduna al-Nu'man bin Bashir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The example of a man and death is like that of a man who has three friends. One of them said: 'Allahumma hadha mali fa-khudh minhu ma shi'ta, wa a'ti ma shi'ta, wa da' ma shi'ta' (O Allah, this is my wealth, so take from it as much as You wish, give away as much as You wish and leave as much as You wish). The second said: 'I am with you, serving you, but when you die I will leave you.' And the third said: 'I am with you; I will enter with you and come out with you, whether you die or live.' As for the one who said, 'This is my wealth, take from it whatever you wish and leave whatever you wish,' that is his wealth; the second is his relatives and clan; and the third is his deeds, which enter with him and come out with him wherever he is."
No one narrated this hadith from Hammad bin Salamah (may Allah have mercy on him) except al-Nadr bin Shumayl (may Allah have mercy on him).
Hadith Referenceالمعجم الأوسط / باب الميم / 7396
Hadith Takhrij«أخرجه الحاكم فى «المستدرك» برقم: 251، 1380، والبزار فى «مسنده» برقم: 3272، وابن أبي شيبة فى «مصنفه» برقم: 35868، والطبراني فى «الكبير» برقم: 143، 144، 142»