(28) باب النَّذْرِ فِي الطَّاعَةِ
Narrated `Aisha:
The Prophet (ﷺ) said, "Whoever vows that he will be obedient to Allah, should remain obedient to Him; and whoever made a vow that he will disobey Allah, should not disobey Him."
Reference: Sahih al-Bukhari 6696
In-book reference: Book 83, Hadith 73
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 78, Hadith 687