Now the sons of Eli were corrupt; they did not know the Lord . Therefore the sin of the young men was very great before the Lord , for men abhorred the offering of the Lord . Now Eli was very old; and he heard everything his sons did to all Israel, and how they lay with the women who assembled at the door of the tabernacle of meeting. So he said to them, “Why do you do such things? For I hear of your evil dealings from all the people. No, my sons! For it is not a good report that I hear. You make the Lord ’s people transgress. If one man sins against another, God will judge him. But if a man sins against the Lord , who will intercede for him?” Nevertheless they did not heed the voice of their father, because the Lord desired to kill them. Then a man of God came to Eli and said to him, “Thus says the Lord : ‘Did I not clearly reveal Myself to the house of your father when they were in Egypt in Pharaoh’s house? Did I not choose him out of all the tribes of Israel to be My priest, to offer upon My altar, to burn incense, and to wear an ephod before Me? And did I not give to the house of your father all the offerings of the children of Israel made by fire? Why do you kick at My sacrifice and My offering which I have commanded in My dwelling place, and honor your sons more than Me, to make yourselves fat with the best of all the offerings of Israel My people?’ Therefore the Lord God of Israel says: ‘I said indeed that your house and the house of your father would walk before Me forever.’ But now the Lord says: ‘Far be it from Me; for those who honor Me I will honor, and those who despise Me shall be lightly esteemed. Behold, the days are coming that I will cut off your arm and the arm of your father’s house, so that there will not be an old man in your house. And you will see an enemy in My dwelling place, despite all the good which God does for Israel. And there shall not be an old man in your house forever. But any of your men whom I do not cut off from My altar shall consume your eyes and grieve your heart. And all the descendants of your house shall die in the flower of their age. Now this shall be a sign to you that will come upon your two sons, on Hophni and Phinehas: in one day they shall die, both of them. Then I will raise up for Myself a faithful priest who shall do according to what is in My heart and in My mind. I will build him a sure house, and he shall walk before My anointed forever. And it shall come to pass that everyone who is left in your house will come and bow down to him for a piece of silver and a morsel of bread, and say, “Please, put me in one of the priestly positions, that I may eat a piece of bread.” ’ ”
I Samuel 2:12, 17-17, 22-25, 27-36 NKJV
So the Philistines fought, and Israel was defeated, and every man fled to his tent. There was a very great slaughter, and there fell of Israel thirty thousand foot soldiers. Also the ark of God was captured; and the two sons of Eli, Hophni and Phinehas, died. Then a man of Benjamin ran from the battle line the same day, and came to Shiloh with his clothes torn and dirt on his head. Now when he came, there was Eli, sitting on a seat by the wayside watching, for his heart trembled for the ark of God. And when the man came into the city and told it, all the city cried out. Then the man said to Eli, “I am he who came from the battle. And I fled today from the battle line.” And he said, “What happened, my son?” So the messenger answered and said, “Israel has fled before the Philistines, and there has been a great slaughter among the people. Also your two sons, Hophni and Phinehas, are dead; and the ark of God has been captured.” Then it happened, when he made mention of the ark of God, that Eli fell off the seat backward by the side of the gate; and his neck was broken and he died, for the man was old and heavy. And he had judged Israel forty years.
I Samuel 4:10-13, 16-18 NKJV