1 Samuel 1:20-28 (NIV)
20 So in the course of time Hannah became pregnant and gave birth to a son. She named him Samuel, saying, “Because I asked the Lord for him.”
21 When her husband Elkanah went up with all his family to offer the annual sacrifice to the Lord and to fulfill his vow, 22 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.”
23 “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.
24 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. 25 When the bull had been sacrificed, they brought the boy to Eli, 26 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. 27 I prayed for this child, and the Lord has granted me what I asked of him. 28 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.
1 Samuel 2:11 (NIV)
11 Then Elkanah went home to Ramah, but the boy ministered before the Lord under Eli the priest.