and her husband finds out about her promise or pledge but doesn't say anything to her and doesn't disallow them, then all of her promises or pledges remain valid.
If a man makes a solemn promise to the Lord, or pledges to do something by swearing an oath, he must not break his promise. He must do everything he said he would.
“Do as you see fit,” her husband Elkanah replied. “Stay here until you have weaned him. May the Lord fulfill what he has said.” So Hannah stayed behind and nursed her son until she had weaned him.