1 Samuel 1:11

1:11 She made a vow saying, “O Lord of hosts, if you will look with compassion on the suffering of your female servant, remembering me and not forgetting your servant, and give a male child to your servant, then I will dedicate him to the Lord all the days of his life. His hair will never be cut.”

1 Samuel 1:24-28

1:24 Once she had weaned him, she took him up with her, along with three bulls, an ephah of flour, and a container of wine. She brought him to the Lord’s house at Shiloh, even though he was young. 1:25 Once the bull had been slaughtered, they brought the boy to Eli. 1:26 She said, “Just as surely as you are alive, my lord, I am the woman who previously stood here with you in order to pray to the Lord. 1:27 I prayed for this boy, and the Lord has given me the request that I asked of him. 1:28 Now I dedicate him to the Lord. From this time on he is dedicated to the Lord.” Then they worshiped the Lord there.