Hadithcore
Mishkat al-Masabih, 3454

He reported God's Messenger as saying, “He who strangles himself will do so in hell, and he who thrusts a spear into himself will do so in hell.” Bukhari transmitted it.

وَعَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «الَّذِي يَخْنُقُ نَفْسَهُ يَخْنُقُهَا فِي النَّارِ وَالَّذِي يَطْعَنُهَا يَطْعَنُهَا فِي النَّارِ» . رَوَاهُ البُخَارِيّ

References1 variant
In-Book Reference
Book 16, Hadith 8