1 Samuel 1:20-22

20 with a son. She named him Samuel because she had asked the LORD for him. [7]

21 The next time Elkanah and his family went to offer their yearly sacrifice, he took along a gift that he had promised to give to the LORD.

22 But Hannah stayed home, because she had told Elkanah, “Samuel and I won’t go until he’s old enough for me to stop nursing him. Then I’ll give him to the LORD, and he can stay there at Shiloh for the rest of his life.”