1 Samuel 1:9-20 New Revised Standard Version (NRSV)
9 After they had eaten and drunk at Shiloh, Hannah rose and presented herself before the Lord.[a] Now Eli the priest was sitting on the seat beside the doorpost of the temple of the Lord. 10 She was deeply distressed and prayed to the Lord, and wept bitterly. 11 She made this vow: “O Lord of hosts, if only you will look on the misery of your servant, and remember me, and not forget your servant, but will give to your servant a male child, then I will set him before you as a nazirite[b] until the day of his death. He shall drink neither wine nor intoxicants,[c] and no razor shall touch his head.”
12 As she continued praying before the Lord, Eli observed her mouth. 13 Hannah was praying silently; only her lips moved, but her voice was not heard; therefore Eli thought she was drunk. 14 So Eli said to her, “How long will you make a drunken spectacle of yourself? Put away your wine.” 15 But Hannah answered, “No, my lord, I am a woman deeply troubled; I have drunk neither wine nor strong drink, but I have been pouring out my soul before the Lord. 16 Do not regard your servant as a worthless woman, for I have been speaking out of my great anxiety and vexation all this time.” 17 Then Eli answered, “Go in peace; the God of Israel grant the petition you have made to him.” 18 And she said, “Let your servant find favor in your sight.” Then the woman went to her quarters,[d] ate and drank with her husband,[e] and her countenance was sad no longer.[f]
19 They rose early in the morning and worshiped before the Lord; then they went back to their house at Ramah. Elkanah knew his wife Hannah, and the Lord remembered her. 20 In due time Hannah conceived and bore a son. She named him Samuel, for she said, “I have asked him of the Lord.”
1 Samuel 2:18-20 New Revised Standard Version (NRSV)
The Child Samuel at Shiloh
18 Samuel was ministering before the Lord, a boy wearing a linen ephod. 19 His mother used to make for him a little robe and take it to him each year, when she went up with her husband to offer the yearly sacrifice. 20 Then Eli would bless Elkanah and his wife, and say, “May the Lord repay[a] you with children by this woman for the gift that she made to[b] the Lord”; and then they would return to their home.