Hadithcore
Mishkat al-Masabih, 3426

Abu Huraira and Ibn ‘Umar reported God’s Messenger as saying, “Do not make vows, for a vow has no effect against fate; it is only from the miserly that it is a means by which something is extracted.” (Bukhari and Muslim.)

عَنْ أَبِي هُرَيْرَةَ وَابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمْ قَالَا: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا تَنْذُرُوا فَإِنَّ النَّذْرَ لَا يُغْنِي مِنَ الْقَدَرِ شَيْئًا وَإِنَّمَا يُسْتَخْرَجُ بِهِ من الْبَخِيل»

References1 variant
In-Book Reference
Book 15, Hadith 21