Messenger of Allah ﷺ said, "Anyone who takes an oath through which his family may be harmed, and insists on keeping it, he surely commits a sin greater (than that of dissolving his oath). He should rather compensate for that oath by making expiation."
قَالَ رَسُولُ اللَّهِ ﷺ مَنِ اسْتَلَجَّ فِي أَهْلِهِ بِيَمِينٍ فَهْوَ أَعْظَمُ إِثْمًا لِيَبَرَّ يَعْنِي الْكَفَّارَةَ