Sunan an-Nasa'i, Book 35, Hadith 45 (Nasa'i 3858)

It was narrated from Abu Hurairah that the Prophet said:

"Do not make vows, for a vow does not have any impact on the Qadar. Rather it is just a means of taking wealth from the miserly."