1 Samuel 1:20-23
English Standard Version
21The man Elkanah and all his house went up to offer to the Lord the yearly sacrifice and to pay his vow.
22But Hannah did not go up, for she said to her husband, "As soon as the child is weaned, I will bring him, so that he may appear in the presence of the Lord and dwell there forever."
23Elkanah her husband said to her, "Do what seems best to you; wait until you have weaned him; only, may the Lord establish his word." So the woman remained and nursed her son until she weaned him.