The Messenger of Allah said: "There is no vow to commit an act of disobedience or at the time of anger, and its expiation is the expiation for an oath."
قَالَ رَسُولُ اللَّهِ ﷺ لاَ نَذْرَ فِي مَعْصِيَةٍ وَلاَ غَضَبٍ وَكَفَّارَتُهُ كَفَّارَةُ يَمِينٍ