Sunan Ibn Majah, Book 11, Hadith 37 (Ibn Majah 2126)

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