Now there was a certain man from Ramathaim-zophim from the hill country of Ephraim, and his name was Elkanah the son of Jeroham, the son of Elihu, the son of Tohu, the son of Zuph, an Ephraimite. He had two wives: the name of one was Hannah and the name of the other Peninnah; and Peninnah had children, but Hannah had no children.
Now this man would go up from his city yearly to worship and to sacrifice to the LORD of hosts in Shiloh. And the two sons of Eli, Hophni and Phinehas, were priests to the LORD there. When the day came that Elkanah sacrificed, he would give portions to Peninnah his wife and to all her sons and her daughters; but to Hannah he would give a double portion, for he loved Hannah, but the LORD had closed her womb. Her rival, however, would provoke her bitterly to irritate her, because the LORD had closed her womb. It happened year after year, as often as she went up to the house of the LORD, she would provoke her; so she wept and would not eat. Then Elkanah her husband said to her, “Hannah, why do you weep and why do you not eat and why is your heart sad? Am I not better to you than ten sons?”
Then Hannah rose after eating and drinking in Shiloh. Now Eli the priest was sitting on the seat by the doorpost of the temple of the LORD. She, greatly distressed, prayed to the LORD and wept bitterly. She made a vow and said, “O LORD of hosts, if You will indeed look on the affliction of Your maidservant and remember me, and not forget Your maidservant, but will give Your maidservant a son, then I will give him to the LORD all the days of his life, and a razor shall never come on his head.”