It wasnarrated from Jabir bin Samurah that a man from among theCompanionsof the Prophet (ﷺ) was wounded, and the wound caused hima greatdeal of pain. He went and took a spearhead, and slaughteredhimselfwith it. The Prophet (ﷺ) did not offer the funeral prayerfor him,and that was as an admonition for others.
English reference: Vol. 1, Book 6, Hadith 1526
Arabic reference: Book 6, Hadith 1593