Sahih Muslim, Book 26, Hadith 7 (Muslim 4203)

Abu Heraira reported Allah's Messenger (ﷺ) as saying:

Do not take vows, for a vow has no effect against Fate; it is only from the miserly that something is extracted.