1 Samuel 1:9-20 ESV
After they had eaten and drunk in Shiloh, Hannah rose. Now Eli the priest was sitting on the seat beside the doorpost of the temple of the LORD. She was deeply distressed and prayed to the LORD and wept bitterly. And she vowed a vow and said, “O LORD of hosts, if you will indeed look on the affliction of your servant and remember me and not forget your servant, but will give to your servant a son, then I will give him to the LORD all the days of his life, and no razor shall touch his head.”
As she continued praying before the LORD, Eli observed her mouth. Hannah was speaking in her heart; only her lips moved, and her voice was not heard. Therefore Eli took her to be a drunken woman. And Eli said to her, “How long will you go on being drunk? Put your wine away from you.” But Hannah answered, “No, my lord, I am a woman troubled in spirit. I have drunk neither wine nor strong drink, but I have been pouring out my soul before the LORD. Do not regard your servant as a worthless woman, for all along I have been speaking out of my great anxiety and vexation.” Then Eli answered, “Go in peace, and the God of Israel grant your petition that you have made to him.” And she said, “Let your servant find favor in your eyes.” Then the woman went her way and ate, and her face was no longer sad.
They rose early in the morning and worshiped before the LORD; then they went back to their house at Ramah. And Elkanah knew Hannah his wife, and the LORD remembered her. And in due time Hannah conceived and bore a son, and she called his name Samuel, for she said, “I have asked for him from the LORD.”
ESV: English Standard Version 2016