From Sahih Muslim (Hadith 4239):
Ibn Umar reported that Allah's Apostle (ﷺ) forbade (people) taking vows, and said:It does not (necessarily) bring good (in the form of substantial, and tangible results), but it is the meant whereby something is extracted from the miserly persons
Reference: Muslim 4239