So the inhabitants of Kiriath-jearim came for the ark of the LORD and brought it into the house of Abinadab on the hill, appointing his son Eleazar as guardian of the ark of the LORD.
Samuel said to them: "If you wish with your whole heart to return to the LORD, put away your foreign gods and your Ashtaroth, devote yourselves to the LORD, and worship him alone. Then he will deliver you from the power of the Philistines."
When they were gathered at Mizpah, they drew water and poured it out on the ground before the LORD, and they fasted that day, confessing, "We have sinned against the LORD." It was at Mizpah that Samuel began to judge the Israelites.
When the Philistines heard that the Israelites had gathered at Mizpah, their lords went up against Israel. Hearing this, the Israelites became afraid of the Philistines
While Samuel was offering the holocaust, the Philistines advanced to join battle with Israel. That day, however, the LORD thundered loudly against the Philistines, and threw them into such confusion that they were defeated by Israel.
The cities from Ekron to Gath which the Philistines had taken from Israel were restored to them. Israel also freed the territory of these cities from the dominion of the Philistines. Moreover there was peace between Israel and the Amorites.