It was narrated from 'Aishah that the Messenger of Allah (ﷺ) said:
"Whoever vows to obey Allah, let him obey Him, and whoever vows to disobey Allah, let him not disobey Him. " (ES)
English reference (ES): Vol. 3, Book 11, Hadith 2126 (ES)
Arabic reference (ES): Book 11, Hadith 2207 (ES)