Bulugh al-Maram, Book 13, Hadith 14 (In-Book)

al-Bukhari has reported from the Hadith of 'Aishah (RA): (Allah's Messenger said) "If anyone vows to disobey Allah, then he must not disobey Him."

وَلِلْبُخَارِيِّ: مِنْ حَدِيثِ عَائِشَةَ: { " وَمَنْ نَذَرَ أَنْ يَعْصِيَ اَللَّهَ فَلَا يَعْصِهِ" } 1‏.‏ ‏1 ‏- صحيح.‏ رواه البخاري ( 6700 )‏ وأوله: " من نذر أن يطيع الله، فليطعه".‏

sunnah.com

also referenced under: Book 13, Hadith 1387 (English)