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.