The Messenger of Allah ﷺ said: A vow is binding in those things by which the pleasure of Allah is sought, and an oath to break ties of relationship is not binding.
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لاَ نَذْرَ إِلاَّ فِيمَا يُبْتَغَى بِهِ وَجْهُ اللَّهِ وَلاَ يَمِينَ فِي قَطِيعَةِ رَحِمٍ