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

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 : Sahih Muslim 1639c
In-book reference : Book 26, Hadith 5
USC-MSA web (English) reference : Book 14, Hadith 4021
  (deprecated numbering scheme)