Hasan Basri reported,

Jundab bin Abdullah narrated to us in this mosque, and we have not forgotten what he told us, nor do we fear that Jundab lied about the Prophet ﷺ. He said, the Messenger of Allah ﷺ said, "Among those who came before you was a man who had a wound. He grew impatient, took a knife, and slashed his hand with it. The bleeding did not stop until he died. Allah the Exalted said, 'My servant has hastened to take his own life before Me. I have forbidden Paradise to him.'"In another narration, a man developed a kharaj, meaning an ulcer.

Azami 6830

Sahih

عن الحسن

حدثنا جندب بن عبد الله في هذا المسجد، وما نسينا منذ حدثنا، وما نخشى أن يكون جندب كذب على النبي ﷺ قال: قال رسول الله ﷺ: كان فيمن كان قبلكم رجل به جرح فجزع فأخذ سكينا فحر بها يده، فما رقا الدم حتى مات. قال الله تعالى: بادرني عبدي بنفسه، حرمت عليه الجنة. وفي رواية: خرج برجل خراج- أي القرحة.

الأعظمي 6830صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Retaliation and crimes
Chapter
Prohibition of protected blood
Section
Severity of the prohibition of a person killing himself
Numbering
Jami al-Kamil 6830 (2nd edition)
Azami 6830