4So the Israelites put away the Baals and the Ashtaroth and served the LORD alone.
5Then Samuel said, 'Assemble all Israel at Mizpah, and I will pray to the LORD on your behalf.'
6When they had gathered at Mizpah, they drew water and poured it out before the LORD. On that day, they fasted and confessed, 'We have sinned against the LORD.' And Samuel judged the Israelites at Mizpah.
7When the Philistines heard that the Israelites had assembled at Mizpah, their rulers marched up against Israel. When the Israelites heard of this, they were afraid of the Philistines.
8The Israelites said to Samuel, 'Do not stop crying out to the LORD our God for us, so that He may save us from the hand of the Philistines.'
9Then Samuel took a suckling lamb and sacrificed it as a whole burnt offering to the LORD. He cried out to the LORD on behalf of Israel, and the LORD answered him.
10While Samuel was offering the burnt offering, the Philistines approached to fight against Israel. But on that day, the LORD thundered with a mighty sound against the Philistines and threw them into such a panic that they were defeated before Israel.
11The men of Israel rushed out of Mizpah and pursued the Philistines, striking them down all the way to a point below Beth-car.
12Then Samuel took a stone and set it up between Mizpah and Shen, naming it Ebenezer, saying, 'Thus far, the LORD has helped us.'
13So the Philistines were subdued and did not invade Israel's territory again. The hand of the LORD was against the Philistines all the days of Samuel.
14The towns that the Philistines had captured from Israel—Ekron to Gath—were restored to Israel, and Israel delivered their territories from the hand of the Philistines. And there was peace between Israel and the Amorites.
15Samuel continued to judge Israel all the days of his life.