Elkanah, a man from the hill country of Ephraim, had two wives: Hannah, who had no children, and Peninnah, who did. Each year he took his family up to Shiloh to worship and sacrifice to the Lord, where Eli's sons Hophni and Phinehas served as priests. Elkanah gave Hannah a double portion because he loved her, but Peninnah cruelly provoked her to irritate her, and Hannah wept and would not eat. Elkanah tried to comfort her by asking whether he was not worth more to her than ten sons.
One day, after eating and drinking at Shiloh, Hannah rose and prayed to the Lord in bitterness of soul and with many tears. She made a vow: if the Lord would look on her affliction and give her a son, she would give him to the Lord all the days of his life, and no razor would touch his head. Eli, who was watching, saw her lips moving with no sound and thought she was drunk. Hannah explained that she had not been drinking wine but was pouring out her soul before the Lord. Eli sent her away with a blessing: may the God of Israel grant what she had asked.
Hannah went away, ate, and her face was no longer sad. The next morning they worshiped and returned to their home in Ramah. The Lord remembered Hannah, and she bore a son and named him Samuel, because she had asked him of the Lord. When the boy was weaned, Hannah took him to Shiloh with a three-year-old bull, flour and wine. She presented the child to Eli, reminded him that she was the woman who had prayed there, and declared that she was leaving him for life in the Lord's service. And there they worshiped the Lord.