Sahih al-Bukhari, Book 83, Hadith 73 (Bukhari 6452)

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."