Sunan an-Nasa'i, Book 35, Hadith 46 (Nasa'i 3860)

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