The Messenger of Allah (ﷺ) as saying: If anyone vows to obey Allah, let him obey Him, but if anyone vows to disobey Him, let him not disobey Him.
Sunan Abi Dawud Book 22, Hadith 48