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.
bukhari:7234Muḥammad > ʿAbdah > Ibn Abū Khālid > Qays > Ataynā Khabbāb b. al-Arat Naʿūduh And Qad Āktawá Sabʿ > Lawlā

We went to pay a visit to Khabbab bin Al-Art and he had got himself branded at seven spots over his body. He said, "If Messenger of Allah ﷺ had not forbidden us to invoke Allah for death, I would have invoked for it."  

البخاري:٧٢٣٤حَدَّثَنَا مُحَمَّدٌ حَدَّثَنَا عَبْدَةُ عَنِ ابْنِ أَبِي خَالِدٍ عَنْ قَيْسٍ قَالَ أَتَيْنَا خَبَّابَ بْنَ الأَرَتِّ نَعُودُهُ وَقَدِ اكْتَوَى سَبْعًا فَقَالَ لَوْلاَ

أَنَّ رَسُولَ اللَّهِ ﷺ نَهَانَا أَنْ نَدْعُوَ بِالْمَوْتِ لَدَعَوْتُ بِهِ  


See similar narrations below:

Collected by Bukhārī, Nasāʾī's Kubrá
bukhari:6349Musaddad > Yaḥyá > Ismāʿīl > Qays > Atayt Khabbāb And Qad Āktawá Sabʿ > Lawlā

I came to Khabbab who had been branded with seven brands(1) and he said, "Had Messenger of Allah ﷺ not forbidden us to invoke (Allah) for death, I would have invoked (Allah) for it."  

البخاري:٦٣٤٩حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا يَحْيَى عَنْ إِسْمَاعِيلَ عَنْ قَيْسٍ قَالَ أَتَيْتُ خَبَّابًا وَقَدِ اكْتَوَى سَبْعًا قَالَ لَوْلاَ

أَنَّ رَسُولَ اللَّهِ ﷺ نَهَانَا أَنْ نَدْعُوَ بِالْمَوْتِ لَدَعَوْتُ بِهِ  

nasai-kubra:1962Muḥammad b. Bashhār > Yaḥyá > Ismāʿīl > Qays

I came to Khabbab who had been branded with seven brands(1) and he said, "Had Messenger of Allah ﷺ not forbidden us to invoke (Allah) for death, I would have invoked (Allah) for it." (Using translation from Bukhārī 6349)  

الكبرى للنسائي:١٩٦٢أَخْبَرَنَا مُحَمَّدُ بْنُ بَشَّارٍ قَالَ حَدَّثَنَا يَحْيَى قَالَ حَدَّثَنَا إِسْمَاعِيلُ حَدَّثَنِي قَيْسٌ قَالَ دَخَلْنَا عَلَى خَبَّابٍ وَقَدِ اكْتَوَى فِي بَطْنِهِ سَبْعًا وَقَالَ لَوْلَا

أَنَّ رَسُولَ اللهِ ﷺ «نَهَانَا أَنْ نَدْعُوَ بِالْمَوْتِ لَدَعَوْتُ بِهِ»