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. (Using translation from Abū Dāʾūd 3290)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَا نَذْرَ فِي مَعْصِيَةِ اللهِ وَكَفَّارَتُهُ كَفَّارَةُ يَمِينٍ