Eli (, ascent; Ἠλί; Heli, 11th century BCE) was, according to the Book of Samuel, a priest and a judge of the Israelites in the city of Shiloh, ancient Israel. When Hannah came to Shiloh to pray for a son, Eli initially accused her of drunkenness, but when she protested her innocence, Eli wished her well. Hannah's eventual child, Samuel, was raised by Eli in the tabernacle. When Eli failed to rein in the abusive behavior of his own sons, God promised to punish his family, which resulted in the death of Eli and his sons. Later biblical passages mention the fortunes of several of Eli's descendants, and he figures prominently in Samaritan religious tradition.
Eli was a priest (kohen) of Shiloh, the second-to-last Israelite judge (succeeded only by Samuel) before the rule of the Kings of Israel and Judah.
This story of Hannah, with which the Books of Samuel begin, involves Eli. Hannah was the wife of Elkanah. She was childless. Elkanah also had another wife (Peninnah) who bore him children. Peninnah, at every chance, teased and criticised Hannah about her barrenness, to the point of Hannah's deep despair. Their husband Elkanah saw Hannah's distress, and attempted to discover the cause of her distress by asking "Hannah, why do you weep? Why do you not eat? Why is your heart sad? Am I not more to you than ten sons?"
The story indicates that Hannah gave no answer to the questions, and instead rose and presented herself before God. She wept bitterly in the temple of Shiloh. In her despair, Hannah prayed to God for a child, and promising that if her prayer is granted, she would dedicate her son to God. When Eli found Hannah in the temple, she was praying silently with her lips moving. Eli witnessed this unusual behavior, and concluded that Hannah was intoxicated. After Hannah's explanation of her sobriety, Eli said, "Go in peace, and may the God of Israel grant you what you have requested." Hannah went home, filled with hope. Subsequently, Hannah became pregnant; her child was named Samuel.