From Sahih Bukhari (Hadith 6609):
Narrated Abu Huraira:The Prophet (ﷺ) said (that Allah said), "Vowing does not bring to the son of Adam anything I have not already written in his fate, but vowing is imposed on him by way of fore ordainment. Through vowing I make a miser spend of his wealth
Reference: Bukhari 6609