Language:
كتاب القدر
82  
Divine Will (Al-Qadar)
(6)
Chapter: Man makes a vow seeking something other than what has been preordained
(6)
باب إِلْقَاءِ النَّذْرِ الْعَبْدَ إِلَى الْقَدَرِ
Sahih al-Bukhari 6609

Narrated Abu Huraira:

The Prophet (ﷺ) said (that Allah said), "Vowing does not bring to the son of Adam anything I have not already written in his fate, but vowing is imposed on him by way of fore ordainment. Through vowing I make a miser spend of his wealth."

حَدَّثَنَا بِشْرُ بْنُ مُحَمَّدٍ، أَخْبَرَنَا عَبْدُ اللَّهِ، أَخْبَرَنَا مَعْمَرٌ، عَنْ هَمَّامِ بْنِ مُنَبِّهٍ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ لاَ يَأْتِي ابْنَ آدَمَ النَّذْرُ بِشَىْءٍ لَمْ يَكُنْ قَدْ قَدَّرْتُهُ، وَلَكِنْ يُلْقِيهِ الْقَدَرُ وَقَدْ قَدَّرْتُهُ لَهُ، أَسْتَخْرِجُ بِهِ مِنَ الْبَخِيلِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6609
In-book reference : Book 82, Hadith 15
USC-MSA web (English) reference : Vol. 8, Book 77, Hadith 606
  (deprecated numbering scheme)