The Prophet (ﷺ) forbade vowing and said, "In fact, vowing does not prevent anything, but it makes a miser to spend his property."
Sahih al-Bukhari Book 82, Hadith 14