So the people of Kiriath Jearim got the LORD's Covenant Box and took it to the house of a man named Abinadab, who lived on a hill. They consecrated his son Eleazar to be in charge of it.
Samuel said to the people of Israel, "If you are going to turn to the LORD with all your hearts, you must get rid of all the foreign gods and the images of the goddess Astarte. Dedicate yourselves completely to the LORD and worship only him, and he will rescue you from the power of the Philistines."
So they all gathered at Mizpah. They drew some water and poured it out as an offering to the LORD and fasted that whole day. They said, "We have sinned against the LORD." (It was at Mizpah where Samuel settled disputes among the Israelites.)
When the Philistines heard that the Israelites had gathered at Mizpah, the five Philistine kings started out with their men to attack them. The Israelites heard about it and were afraid,
Samuel killed a young lamb and burned it whole as a sacrifice to the LORD. Then he prayed to the LORD to help Israel, and the LORD answered his prayer.
While Samuel was offering the sacrifice, the Philistines moved forward to attack; but just then the LORD thundered from heaven against them. They became completely confused and fled in panic.
All the cities which the Philistines had captured between Ekron and Gath were returned to Israel, and so Israel got back all its territory. And there was peace also between the Israelites and the Canaanites.