The men of Kiriath Jearim came to take the LORD's ark and brought it into Abinadab's house on the hill. They gave Abinadab's son Eleazar the holy occupation of guarding the LORD's ark.
A long time passed after the ark came to stay at Kiriath Jearim. For 20 years the entire nation of Israel mournfully sought the LORD.
Samuel told the entire nation of Israel, "If you are returning to the LORD wholeheartedly, get rid of the foreign gods you have, including the statues of the goddess Astarte. Make a commitment to the LORD, and serve only him. Then he will rescue you from the Philistines."
So the Israelites got rid of the statues of Baal and Astarte and served only the LORD.
Then Samuel said, "Gather all the Israelites together at Mizpah, and I will pray to the LORD for you."
So the Israelites gathered together at Mizpah. They drew some water, poured it out in front of the LORD, and fasted that day. They confessed, "We have sinned against the LORD." So Samuel judged Israel in Mizpah.
When the Philistines heard that the Israelites had gathered at Mizpah, the Philistine rulers came to attack Israel. The Israelites heard [about the Philistine plan] and were afraid of them.
The Israelites said to Samuel, "Don't turn a deaf ear to us! Don't stop crying to the LORD our God for us! Ask him to save us from the Philistines!"
Then Samuel took a lamb, one still feeding on milk, and sacrificed it as a burnt offering to the LORD. Samuel cried to the LORD on behalf of Israel, and the LORD answered him.
While Samuel was sacrificing the burnt offering, the Philistines came to fight against Israel. On that day the LORD thundered loudly at the Philistines and threw them into such confusion that they were defeated by Israel.
Israel's soldiers left Mizpah, pursued the Philistines, and killed them as far as Beth Car.
Then Samuel took a rock and set it up between Mizpah and Shen. He named it Ebenezer [Rock of Help] and said, "Until now the LORD has helped us."
The power of the Philistines was crushed, so they didn't come into Israel's territory again. The LORD restrained the Philistines as long as Samuel lived.
The cities between Ekron and Gath which the Philistines took from Israel were returned to Israel. And Israel recovered the territory controlled by these cities from the Philistines. There was also peace between Israel and the Amorites.
Samuel judged Israel as long as he lived.
Every year he went around to Bethel, Gilgal, and Mizpah in order to judge Israel in all those places.
Then he would return home to Ramah. There, too, he judged Israel. And in Ramah he built an altar to the LORD.