It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:
"Vows do not bring the son of Adam anything unless it has been decreed for him. But he is dominated by Divine preordainment, and will get what is decreed for him. And (vows) are a means of making the miser give something, so what he desires becomes obtainable for him, which was not obtainable before his vow. And Allah says: 'Spend, I will spend on you.'
English reference: Vol. 3, Book 11, Hadith 2123
Arabic reference: Book 11, Hadith 2204