1 Samuel 7:2-4 New English Translation (NET Bible)
Further Conflict with the Philistines
2 It was quite a long time—some twenty years in all—that the ark stayed at Kiriath Jearim. All the people[a] of Israel longed for[b] the Lord. 3 Samuel said to all the people of Israel, “If you are really turning to the Lord with all your hearts, remove from among you the foreign gods and the images of Ashtoreth.[c] Give your hearts to the Lord and serve only him. Then he will deliver you[d] from the hand of the Philistines.” 4 So the Israelites[e] removed the Baals and images of Ashtoreth. They served only the Lord.
1 Samuel 7:2-4 New International Version (NIV)
2 The ark remained at Kiriath Jearim a long time—twenty years in all.
Samuel Subdues the Philistines at Mizpah
Then all the people of Israel turned back to the Lord. 3 So Samuel said to all the Israelites, “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.” 4 So the Israelites put away their Baals and Ashtoreths, and served the Lord only.