Sahih Muslim, Book 26, Hadith 5 (Muslim 4201)

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.