1 Samuel 1:24-28
After he was weaned, she took the boy with her, young as he was, along with a three-year old bull, an ephah of flour and a skin of wine, and brought him to the house of the Lord at Shiloh. When the bull had been sacrificed, they brought the boy to Eli, and she said to him, 'Pardon me, my lord, As surely as you live, I am the woman who stood here beside you praying to the Lord. I prayed for this child, and the Lord has granted me what I asked of him. So now I give him to the Lord. For his whole life he will be given over to the Lord.' And he worshiped the Lord there.
We see that Hannah kept her oath to God and are reminded that God takes oaths very seriously. We are not required to take an oath but, if we do so, God expects us to keep it. Many times, people will promise God something during the tough times and forget about it when the storm passes. Here, we see the example of a Godly woman that was obedient and, by doing so, God would be glorified.