“On top of that,” the women added, “when we burned incense to the Queen of Heaven and poured out drink offerings to worship her, did we do this without our husbands knowing about it, that we baked cakes stamped with her image and poured out drink offerings to worship her?”
If you foolishly swear to do something (whether good or bad, and in whatever way people impulsively swear an oath), even if you're unaware of it being wrong, when you eventually realize it, you are guilty.
But if her father disallows them as soon as he finds out, then none of her promises or pledges remain valid. The Lord will release her from keeping them because her father has disallowed them.
She made a vow, asking, “Lord Almighty, if only you would pay attention to the suffering of your servant and remember me, and not forget me but give me a son, then I will dedicate him to the Lord for his whole life, and no razor shall ever touch his head.”