1Sa 1 Samuel, chapter First Book of Samuel, chapter 1
“Do what you think is best,” her husband Elkanah replied, “and stay here until you have weaned him. Only may the LORD confirm His word.”1:23 MT; DSS, LXX, and Syriac your word
So Hannah stayed and nursed her son until she had weaned him.