The Prophet ﷺ said, "A slave is not bound by a vow concerning what he does not own. Cursing a believer is like killing him. Whoever accuses a believer of disbelief is like one who has killed him. Whoever kills himself with something will be punished by Allah with the very thing he used to kill himself on the Day of Resurrection."
حدثنا أحمد بن منيع حدثنا إسحق بن يوسف الأزرق عن هشام الدستوائي عن يحيى بن أبي كثير عن أبي قلابة
عن النبي ﷺ قال ليس على العبد نذر فيما لا يملك ولاعن المؤمن كقاتله ومن قذف مؤمنا بكفر فهو كقاتله ومن قتل نفسه بشيء عذبه الله بما قتل به نفسه يوم القيامة
Agreed upon [by Bukhari and Muslim]. Muslim narrated it in the Book of Faith, chapter on the severity of the prohibition against a person killing himself, etc., hadith no. 110, from Hisham Dastawai, and Bukhari, hadith no. 6047, from Yahya bin Abu Kathir, with the same wording. On this subject there is also a report from Abu Dharr [Bukhari, hadith no. 6045, and Muslim, hadith no. 61] and Ibn Umar [to come, 2637].