1So the men of Kiriath Jearim came and took up the ark of the Lord . They took it to Abinadab's house on the hill and consecrated Eleazar his son to guard the ark of the Lord .
2It was a long time, twenty years in all, that the ark remained at Kiriath Jearim, and all the people of Israel mourned and sought after the Lord .
3And Samuel said to the whole house of Israel, "If you are returning to the Lord with all your hearts, then rid yourselves of the foreign gods and the Ashtoreths and commit yourselves to the Lord and serve him only, and he will deliver you out of the hand of the Philistines."
4So the Israelites put away their Baals and Ashtoreths, and served the Lord only.
5Then Samuel said, "Assemble all Israel at Mizpah and I will intercede with the Lord for you."
6When they had assembled at Mizpah, they drew water and poured it out before the Lord . On that day they fasted and there they confessed, "We have sinned against the Lord ." And Samuel was leader of Israel at Mizpah.
7When the Philistines heard that Israel had assembled at Mizpah, the rulers of the Philistines came up to attack them. And when the Israelites heard of it, they were afraid because of the Philistines.
8They said to Samuel, "Do not stop crying out to the Lord our God for us, that he may rescue us from the hand of the Philistines."
9Then Samuel took a suckling lamb and offered it up as a whole burnt offering to the Lord . He cried out to the Lord on Israel's behalf, and the Lord answered him.
10While Samuel was sacrificing the burnt offering, the Philistines drew near to engage Israel in battle. But that day the Lord thundered with loud thunder against the Philistines and threw them into such a panic that they were routed before the Israelites.
11The men of Israel rushed out of Mizpah and pursued the Philistines, slaughtering them along the way to a point below Beth Car.
12Then Samuel took a stone and set it up between Mizpah and Shen. He named it Ebenezer, saying, "Thus far has the Lord helped us."
13So the Philistines were subdued and did not invade Israelite territory again. Throughout Samuel's lifetime, the hand of the Lord was against the Philistines.
14The towns from Ekron to Gath that the Philistines had captured from Israel were restored to her, and Israel delivered the neighboring territory from the power of the Philistines. And there was peace between Israel and the Amorites.
15Samuel continued as judge over Israel all the days of his life.
16From year to year he went on a circuit from Bethel to Gilgal to Mizpah, judging Israel in all those places.
17But he always went back to Ramah, where his home was, and there he also judged Israel. And he built an altar there to the Lord .