حَدَّثَنَا إِسْمَاعِيلُ بْنُ مُوسَى، حَدَّثَنَا شَرِيكٌ، عَنْ أَبِي إِسْحَاقَ، عَنْ حَارِثَةَ بْنِ مُضَرِّبٍ، قَالَ أَتَيْنَا خَبَّابًا نَعُودُهُ فَقَالَ لَقَدْ طَالَ سُقْمِي وَلَوْلاَ أَنِّي سَمِعْتُ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ يَقُولُ ‏"‏ لاَ تَتَمَنَّوُا الْمَوْتَ ‏"‏ ‏.‏ لَتَمَنَّيْتُهُ وَقَالَ ‏"‏ إِنَّ الْعَبْدَ لَيُؤْجَرُ فِي نَفَقَتِهِ كُلِّهَا إِلاَّ فِي التُّرَابِ ‏"‏ ‏.‏ أَوْ قَالَ ‏"‏ فِي الْبِنَاءِ ‏"‏ ‏.‏

It wasnarrated that Harithah bin Mudarrib said: “We came to Khabbabtovisit him (when he was sick), and he said: ‘I have been sick for along time, and were it not that I heard the Messenger of Allah (PBUH)say: “Do not wish for death,” I would have wished for it.’ Andhesaid: “A person will be rewarded for all his spending, exceptfor(what he spends) on dust,” or he said, “on building.” Translation Not Available

Book Ref: Sunan Ibn Majah Book 37 Hadith 4163
Web Ref:  Sunan Ibn Majah Vol 5 Book 37 Hadith 4163