The Prophet (ﷺ) as saying: No vow must be taken to do an act of disobedience, and the atonement for it is the same as for an oath.
Sunan Abi Dawud Book 22, Hadith 49