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)
عَنِ النَّبِيِّ ﷺ أَنَّهُ قَالَ لَا نَذْرَ فِي غَضَبٍ وَكَفَّارَتُهُ كَفَّارَةُ يَمِينٍ