1 Samuel 1:21-28 NIV
When her husband Elkanah went up with all his family to offer the annual sacrifice to the LORD and to fulfill his vow, Hannah did not go. She said to her husband, “After the boy is weaned, I will take him and present him before the LORD, and he will live there always.”
“Do what seems best to you,” her husband Elkanah told her. “Stay here until you have weaned him; only may the LORD make good his word.” So the woman stayed at home and nursed her son until she had weaned him.
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.
NIV: New International Version