1 Samuel 1:20-23

ISV(i) 20 By the time of the next year’s sacrifice, Hannah had become pregnant and had borne a son. She named him Samuel because she said, “I asked the LORD for him.”
21 Hannah Dedicates Samuel to the LORDThen Elkanah went up with all his family to offer the yearly sacrifice to the LORD and pay his vow. 22 Hannah did not go up because she had told her husband, “As soon as the child is weaned, I’ll take him to appear in the LORD’s presence and remain there forever.
23 “Do what you want,” Elkanah told her. “Stay until you have weaned him, only may the LORD bring about what you’ve said.” So Hannah stayed and nursed her son until she had weaned him.