1 Samuel 7:3-8
English Standard Version
Chapter 7
3And 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 Ashtaroth from among you and direct your heart to the Lord and serve him only, and he will deliver you out of the hand of the Philistines." 4So the people of Israel put away the Baals and the Ashtaroth, and they served the Lord only.
5Then Samuel said, "Gather all Israel at Mizpah, and I will pray to the Lord for you."
6So they gathered at Mizpah and drew water and poured it out before the Lord and fasted on that day and said there, "We have sinned against the Lord." And Samuel judged the people of Israel at Mizpah.
7Now 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.
8And the people of Israel said to Samuel, "Do not cease to cry out to the Lord our God for us, that he may save us from the hand of the Philistines."