And the people of Kiriath-jearim came and took up the ark of the LORD, and brought it to the house of Abinadab on the hill. They consecrated his son, Eleazar, to have charge of the ark of the LORD.
Then Samuel said to all the house of Israel, "If you are returning to the LORD with all your heart, then put away the foreign gods and the Astartes from among you. Direct your heart to the LORD, and serve him only, and he will deliver you out of the hand of the Philistines."
So they gathered at Mizpah, and drew water and poured it out before the LORD. They fasted that day, and said, "We have sinned against the LORD." And Samuel judged the people of Israel at Mizpah.
When the Philistines heard that the people of Israel had gathered at Mizpah, the lords of the Philistines went up against Israel. And when the people of Israel heard of it they were afraid of the Philistines.
The people of Israel said to Samuel, "Do not cease to cry out to the LORD our God for us, and pray that he may save us from the hand of the Philistines."
So Samuel took a sucking lamb and offered it as a whole burnt offering to the LORD; Samuel cried out to the LORD for Israel, and the LORD answered him.
As Samuel was offering up the burnt offering, the Philistines drew near to attack Israel; but the LORD thundered with a mighty voice that day against the Philistines and threw them into confusion; and they were routed before Israel.
So the Philistines were subdued and did not again enter the territory of Israel; the hand of the LORD was against the Philistines all the days of Samuel.
The towns that the Philistines had taken from Israel were restored to Israel, from Ekron to Gath; and Israel recovered their territory from the hand of the Philistines. There was peace also between Israel and the Amorites.