Sahih al-Bukhari 7234
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا مُحَمَّدٌ، حَدَّثَنَا عَبْدَةُ، عَنِ ابْنِ أَبِي خَالِدٍ، عَنْ قَيْسٍ، قَالَ أَتَيْنَا خَبَّابَ بْنَ الأَرَتِّ نَعُودُهُ وَقَدِ اكْتَوَى سَبْعًا فَقَالَ لَوْلاَ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَانَا أَنْ نَدْعُوَ بِالْمَوْتِ لَدَعَوْتُ بِهِ.
Narrated Qais:
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 Allah's Messenger (ﷺ) had not forbidden us to invoke Allah for death, I would have invoked for it."
Full reference and source
Sahih al-Bukhari 7234 In-book : Book 94, Hadith 9 USC-MSA web (English) : Vol. 9, Book 90, Hadith 340 (deprecated)
View source on Sunnah.com (opens in a new tab)