Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:6562Abū al-Ḥasan ʿAlī b. Aḥmad b. ʿAbdān al-Ahwāzī > Abū Bakr Muḥammad b. Aḥmad b. Maḥmawayh al-ʿAskarī Bi-al-Ahwāz > Jaʿfar al-Qalānisī > Ādam > Shuʿbah > Ismāʿīl b. Abū Khālid > Qays b. Abū Ḥāzim > Dakhalnā > Khabbāb Naʿūduh And Qad Āktawá Bisabʿ Kayyāt

[Machine] Indeed, the Companions of our Prophet who embraced Islam passed away and did not leave behind any wealth. We have received wealth for which we could not find a place except for the ground. Then we brought it back to him another time, and he was constructing a wall for himself. He said, "Verily, a Muslim is rewarded for every expenditure he makes, except for something he puts in the ground. If it were not for the fact that the Messenger of Allah prohibited us from supplicating for death, I would have supplicated for it."  

البيهقي:٦٥٦٢أَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ الْأَهْوَازِيُّ أنبأ أَبُو بَكْرٍ مُحَمَّدُ بْنُ أَحْمَدَ بْنِ مَحْمَوَيْهِ الْعَسْكَرِيُّ بِالْأَهْوَازِ ثنا جَعْفَرٌ الْقَلَانِسِيُّ ثنا آدَمُ ثنا شُعْبَةُ عَنْ إِسْمَاعِيلَ بْنِ أَبِي خَالِدٍ عَنْ قَيْسِ بْنِ أَبِي حَازِمٍ قَالَ دَخَلْنَا عَلَى خَبَّابٍ نَعُودُهُ وَقَدِ اكْتَوَى بِسَبْعِ كَيَّاتٍ فَقَالَ

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

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ آدَمَ بْنِ أَبِي إِيَاسٍ وَرَوَاهُ مُسْلِمٌ مِنْ أَوْجُهٍ عَنْ إِسْمَاعِيلَ

See similar narrations below:

Collected by Bukhārī, Ṭabarānī
bukhari:5672Ādam > Shuʿbah > Ismāʿīl b. Abū Khālid > Qays b. Abū Ḥāzim > Dakhalnā > Khabbāb Naʿūduh And Qad Āktawá Sabʿ Kayyāt

We went to pay a visit to Khabbab (who was sick) and he had been branded (cauterized) at seven places in his body. He said, "Our companions who died (during the lifetime of the Prophet) left (this world) without having their rewards reduced through enjoying the pleasures of this life, but we have got (so much) wealth that we find no way to spend It except on the construction of buildings Had the Prophet not forbidden us to wish for death, I would have wished for it.' We visited him for the second time while he was building a wall. He said, A Muslim is rewarded (in the Hereafter) for whatever he spends except for something that he spends on building."  

البخاري:٥٦٧٢حَدَّثَنَا آدَمُ حَدَّثَنَا شُعْبَةُ عَنْ إِسْمَاعِيلَ بْنِ أَبِي خَالِدٍ عَنْ قَيْسِ بْنِ أَبِي حَازِمٍ قَالَ

دَخَلْنَا عَلَى خَبَّابٍ نَعُودُهُ وَقَدِ اكْتَوَى سَبْعَ كَيَّاتٍ فَقَالَ إِنَّ أَصْحَابَنَا الَّذِينَ سَلَفُوا مَضَوْا وَلَمْ تَنْقُصْهُمُ الدُّنْيَا وَإِنَّا أَصَبْنَا مَا لاَ نَجِدُ لَهُ مَوْضِعًا إِلاَّ التُّرَابَ وَلَوْلاَ أَنَّ النَّبِيَّ ﷺ نَهَانَا أَنْ نَدْعُوَ بِالْمَوْتِ لَدَعَوْتُ بِهِ ثُمَّ أَتَيْنَاهُ مَرَّةً أُخْرَى وَهْوَ يَبْنِي حَائِطًا لَهُ فَقَالَ إِنَّ الْمُسْلِمَ لَيُوجَرُ فِي كُلِّ شَىْءٍ يُنْفِقُهُ إِلاَّ فِي شَىْءٍ يَجْعَلُهُ فِي هَذَا التُّرَابِ  

tabarani:3635Muḥammad b. ʿAbdūs b. Kāmil > ʿAlī b. al-Jaʿd > Shuʿbah > Ismāʿīl > Qays > Dakhalnā > Khabbāb Naʿūduh And Qad Āktawá Sabʿ Kayyāt

[Machine] We entered the workshop of a blacksmith who was suffering from the burning of seven boils. He said, "Indeed, our predecessors who came before us left this world and nothing from it has diminished them. And indeed, we have experienced what comes after them, and we have found no place for it except the dust." He then added, "We came back to him later as he was building a wall for himself, and he said, 'Indeed, a Muslim is rewarded for everything he spends except for something that he puts in the dust. And if it wasn't for the fact that the Prophet ﷺ prohibited or dissuaded us from praying for death, I would have prayed for it.'"  

الطبراني:٣٦٣٥حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدُوسِ بْنِ كَامِلٍ ثنا عَلِيُّ بْنُ الْجَعْدِ أَنَا شُعْبَةُ عَنْ إِسْمَاعِيلَ عَنْ قَيْسٍ قَالَ

دَخَلْنَا عَلَى خَبَّابٍ نَعُودُهُ وَقَدِ اكْتَوَى سَبْعَ كَيَّاتٍ فَقَالَ إِنَّ أَصْحَابَنَا الَّذِينَ سَلَفُوا مَضَوْا وَذَهَبُوا لَمْ تَنْقُصْهُمُ الدُّنْيَا شَيْئًا وَإِنَّا أَصَبْنَا بَعْدَهُمْ مَا لَا نَجِدُ لَهُ مَوْضِعًا إِلَّا التُّرَابَ قَالَ ثُمَّ أَتَيْنَا بَعْدَ ذَلِكَ نَعُودُهُ وَهُوَ يَبْنِي حَائِطًا لَهُ فَقَالَ «إِنَّ الْمُسْلِمَ يُؤْجَرُ فِي كُلِّ شَيْءٍ يُنْفِقُهُ إِلَّا شَيْئًا يَجْعَلُهُ فِي التُّرَابِ وَلَوْلَا أَنَّ النَّبِيَّ ﷺ نَهَى أَوْ نَهَانَا أَنْ نَدْعُوَ بِالْمَوْتِ لَدَعَوْتُ بِهِ»