(47) باب غِلَظِ تَحْرِيمِ قَتْلِ الإِنْسَانِ نَفْسَهُ وَإِنَّ مَنْ قَتَلَ نَفْسَهُ بِشَيْءٍ عُذِّبَ بِهِ فِي النَّارِ وَأَنَّهُ لاَ يَدْخُلُ الْجَنَّةَ إِلاَّ نَفْسٌ مُسْلِمَةٌ
It is narrated on the authority of Thabit b. Dahhak that the Messenger of Allah (ﷺ) observed:
He who took deliberately a false oath on a religion other than Islam would become that which he had professed. And he who killed himself with anything Allah would torment him with that in the Fire of Hell.
Reference: Sahih Muslim 110 c
In-book reference: Book 1, Hadith 210
USC-MSA web (English) reference(deprecated numbering scheme): Book 1, Hadith 203