1 Samuel 1:20-22

20 So it was that she became pregnant and gave birth to a son. She named him Samuel, and explained, "I asked the LORD for him."

21 The time came again for Elkanah and his family to go to Shiloh and offer to the LORD the yearly sacrifice and the special sacrifice he had promised.

22 But this time Hannah did not go. She told her husband, "As soon as the child is weaned, I will take him to the house of the LORD, where he will stay all his life."