Sahih Muslim, Book 26, Hadith 8 (Muslim 4204)

Abu Huraira reported Allah's Messenger (ﷺ) forbidding taking of vows, and said:

It does not avert Fate, but is the means by which something is extracted from the miser.