The men of Kiriath-jearim bring the ark to the house of Abinadab on a hill and consecrate his son Eleazar to guard it. Twenty years pass and all Israel longs after the Lord. Then Samuel tells them that if they are truly returning to him with all their heart, they must put away the foreign gods and the Ashtaroth, direct their hearts to the Lord and serve him alone, and he will deliver them from the Philistines. Israel removes the Baals and Ashtaroth and serves the Lord alone.
Samuel gathers all Israel at Mizpah to pray for them. There they draw water and pour it out before the Lord, fast and confess that they have sinned, and Samuel judges them. When the Philistines hear of the gathering, they go up against Israel, and the Israelites, full of fear, ask Samuel not to stop crying out for them. Samuel offers a nursing lamb as a burnt offering and cries out to the Lord, and the Lord answers him.
While Samuel is offering the burnt offering, the Philistines draw near to attack, but the Lord thunders with a mighty sound against them and throws them into panic. The men of Israel go out from Mizpah and pursue them as far as below Beth-car. Samuel sets up a stone between Mizpah and Shen and calls it Ebenezer, saying that thus far the Lord has helped them. The Philistines are subdued and do not enter Israel's territory again during Samuel's days; the lost cities return to Israel. Samuel judges Israel all the days of his life, going on a circuit to Bethel, Gilgal and Mizpah, and returns to Ramah, where he builds an altar to the Lord.