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.
tirmidhi:970Muḥammad b. Bashhār > Muḥammad b. Jaʿfar > Shuʿbah > Abū Isḥāq > Ḥārithah b. Muḍarrib

"I entered upon Khabab and he had been cauterized on his stomach. He said: 'I do not know any of the Companions of the Prophet who met with the trial I have met with. Indeed I could not find a Dirham during the time of the Prophet, and (now) outside my house there are forty thousand. If it were not that the Messenger of Allah forbade us' - or: 'forbade' - 'from wishing for death, then I would wish for it.'"  

الترمذي:٩٧٠حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ حَدَّثَنَا شُعْبَةُ عَنْ أَبِي إِسْحَاقَ عَنْ حَارِثَةَ بْنِ مُضَرِّبٍ قَالَ

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

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

See similar narrations below:

Collected by Aḥmad
ahmad:21066Muḥammad b. Jaʿfar > Shuʿbah > Abū Isḥāq > Ḥārithah b. Muḍarrib

[Machine] I do not know of anyone who has encountered as much adversity as I have. I never had and never will find a single dirham during the time of the Prophet ﷺ. Although I have 40,000 in the corner of my house, had the Prophet ﷺ not prohibited us from desiring death, I would have wished for it.  

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

مَا أَعْلَمُ أَحَدًا لَقِيَ مِنَ الْبَلَاءِ مَا لَقِيتُ لَقَدْ كُنْتُ وَمَا أَجِدُ دِرْهَمًا عَلَى عَهْدِ رَسُولِ اللهِ ﷺ وَإِنَّ لِي فِي نَاحِيَةِ بَيْتِي هَذَا أَرْبَعِينَ أَلْفًا وَلَوْلَا أَنَّ رَسُولَ اللهِ ﷺ نَهَانَا أَوْ نَهَى أَنْ نَتَمَنَّى الْمَوْتَ لَتَمَنَّيْتُهُ