I Samuel 1:20-28 NKJV
So it came to pass in the process of time that Hannah conceived and bore a son, and called his name Samuel, saying, “Because I have asked for him from the LORD.”
Now the man Elkanah and all his house went up to offer to the LORD the yearly sacrifice and his vow. But Hannah did not go up, for she said to her husband, “Not until the child is weaned; then I will take him, that he may appear before the LORD and remain there forever.”
So Elkanah her husband said to her, “Do what seems best to you; wait until you have weaned him. Only let the LORD establish His word.” Then the woman stayed and nursed her son until she had weaned him.
Now when she had weaned him, she took him up with her, with three bulls, one ephah of flour, and a skin of wine, and brought him to the house of the LORD in Shiloh. And the child was young. Then they slaughtered a bull, and brought the child to Eli. And she said, “O my lord! As your soul lives, my lord, I am the woman who stood by you here, praying to the LORD. For this child I prayed, and the LORD has granted me my petition which I asked of Him. Therefore I also have lent him to the LORD; as long as he lives he shall be lent to the LORD.” So they worshiped the LORD there.
NKJV: New King James Version