1Sa 2:22 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.
1Sa 2:23 So he said to them, “Why do you do such things? For I hear of your evil dealings from all the people.
1Sa 2:24 No, my sons! For it is not a good report that I hear. You make the LORD’s people transgress.
1Sa 2:25 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.
Calvinist Michael Hansen writes on this in his post “An Example of Where I See Calvinism in the Bible”:
The very last statement in verse 25 presents God’s sovereignty over human will clearly. Eli wishes that his sons would refrain from evil. He knows that, as priests of God, if they continue in evil, God will punish them. Phinehas & Hophni refuse to listen to their father’s wisdom. The author of the book of 1 Samuel gives us a reason why Phinehas & Hophni would not listen: “for it was the will of the LORD to put them to death”.
In that statement we see two things at work: 1) The will of Eli’s sons to disobey their father’s instruction. 2) The reason why Phinehas & Hophni willed disobedience -> the will of God. God’s will is the reason for their will.
When Calvinists quote verses such as 1 Samuel 2 to point out fleeting sections to glean “Calvinism”, I should always be pointed out the larger context explicitly contradicts Calvinism. The entire God is God revoking His promise to Eli based on the actions of human beings. God explains in the very next verses that although He had promised one thing, God will do something else instead:
1Sa 2:30 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.
So God has promised to make Eli’s house the house of priests forever. But then Eli’s sons sinned greatly. In this context does God not want them to repent (verse 25) and then killed them.
Did God override their free will as Michael Hansen claims? Maybe.
But a more reasonable view of this entire section is that because Samuel’s sons chose to disobey God, contrary to God’s desire that God sought to make sure they did not ask for repentance. In this fashion God was revoking His promise to Eli.
The entire context is about people thwarting what God wants and God repenting of His promise. This is not a good context for Calvinism.