Narrated Thabit bin Adh-Dahhak: That he took oath of allegiance to the Messenger of Allah ﷺ under the tree. The Messenger of Allah ﷺ said: If anyone swears by religion other than Islam falsely, he is like what has has said. If anyone kills himself with something, he will be punished with it on the Day of Resurrection. A vow over which a man has no control is not binding on him.
Hadith Referenceسنن ابي داود / كتاب الأيمان والنذور / 3257
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح بخاري (4171) صحيح مسلم (110)
Narrated Thabit ibn ad-Dahhak: In the time of the Prophet ﷺ a man took a vow to slaughter a camel at Buwanah. So he came to the Prophet ﷺ and said: I have taken a vow to sacrifice a camel at Buwanah. The Prophet ﷺ asked: Did the place contain any idol worshipped in pre-Islamic times? They (the people) said: No. He asked: Was any pre-Islamic festival observed there? They replied: No. The Prophet ﷺ said: Fulfil your vow, for a vow to do an act of disobedience to Allah must not be fulfilled, neither must one do something over which a human being has no control.
Hadith Referenceسنن ابي داود / كتاب الأيمان والنذور / 3313