(Iafseer As-Saawi, vol. 3, pp. 1089; part 14, Surah An-Nahl, Ayah 92)
Those who take oaths and swear to Allah and then break their commitments, Allah has prohibited them to do so, presenting the example of that woman. It is mentioned in the Holy Quran:
And fulfil the covenant of Allah when you have made the covenant, and do not break your oaths after making them binding. And you have made Allah a Guarantor over you, indeed Allah knows your deeds. (By breaking your covenant and oath) do not be like the woman who broke her spun thread into pieces after it had become strong.
[Kanz-ul-Iman (Translation of Quran)J (Part 14, Surah An-Nahl, Ayah 91-92)
False commitment and breaking of promise is strictly prohibited and is a sin as per Shari’ah. Similarly, swearing oath in the name Allah and breaking it without any valid reason is not legitimate either. Allah has
said meaning fulfil your promises. Furthermore, Allah says
meaning and guard (i.e. fulfil) your oaths. However, if someone
vowed a thing that is impermissible as per Shari’ ah, then he should not maintain that. Instead, it is mandatory to break such oath and pay recompense instead.