Thabit bin Dahhak reported,

He informed him that he had pledged allegiance to the Messenger of Allah ﷺ under the tree, and that the Messenger of Allah ﷺ said, "Whoever swears an oath by a religion other than Islam falsely is as he said. Whoever kills himself with something will be tormented with it on the Day of Resurrection. A man is not bound by a vow concerning something he does not own."

Muslim 302

Sahih

حدثنا يحيى بن يحيى أخبرنا معاوية بن سلام بن أبي سلام الدمشقي عن يحيى بن أبي كثير أن أبا قلابة أخبره أن

ثابت بن الضحاك

أخبره أنه بايع رسول الله ﷺ تحت الشجرة وأن رسول الله ﷺ قال من حلف على يمين بملة غير الإسلام كاذبا فهو كما قال ومن قتل نفسه بشيء عذب به يوم القيامة وليس على رجل نذر في شيء لا يملكه

مسلم 302صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Severity of the prohibition of a person killing himself, that whoever kills himself with something will be punished with it in the Fire, and that none will enter Paradise except a Muslim soul
Numbering
Darussalam 302
Muslim 302