(31) باب النَّذْرِ فِيمَا لاَ يَمْلِكُ وَفِي مَعْصِيَةٍ
Narrated `Aisha:
The Prophet (ﷺ) said, "Whoever vowed to be obedient to Allah, must be obedient to Him; and whoever vowed to be disobedient to Allah, should not be disobedient to Him."
Reference: Sahih al-Bukhari 6700
In-book reference: Book 83, Hadith 77
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 78, Hadith 691