كتاب النذر
26  
The Book of Vows
(2)
Chapter: he Prohibition Of Vows, And Confirmation That They Do Not Avert Anything
(2)
باب النَّهْىِ عَنِ النَّذْرِ، وَأَنَّهُ، لاَ يَرُدُّ شَيْئًا ‏‏
Sahih Muslim 1640 c

Abu Huraira reported Allah's Apostle (ﷺ) as saying:

The vow does not bring anything near to the son of Adam which Allah has not ordained for him, but (at times) the vow coincides with Destiny, and this is how something is extracted from the miserly person, which that miser was not willing to give.
حَدَّثَنَا يَحْيَى بْنُ أَيُّوبَ، وَقُتَيْبَةُ بْنُ سَعِيدٍ، وَعَلِيُّ بْنُ حُجْرٍ، قَالُوا حَدَّثَنَا إِسْمَاعِيلُ، - وَهُوَ ابْنُ جَعْفَرٍ - عَنْ عَمْرٍو، - وَهْوَ ابْنُ أَبِي عَمْرٍو - عَنْ عَبْدِ الرَّحْمَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏ "‏ إِنَّ النَّذْرَ لاَ يُقَرِّبُ مِنِ ابْنِ آدَمَ شَيْئًا لَمْ يَكُنِ اللَّهُ قَدَّرَهُ لَهُ وَلَكِنِ النَّذْرُ يُوَافِقُ الْقَدَرَ فَيُخْرَجُ بِذَلِكَ مِنَ الْبَخِيلِ مَا لَمْ يَكُنِ الْبَخِيلُ يُرِيدُ أَنْ يُخْرِجَ ‏"‏ ‏.‏
Reference : Sahih Muslim 1640c
In-book reference : Book 26, Hadith 9
USC-MSA web (English) reference : Book 14, Hadith 4025
  (deprecated numbering scheme)