ESV: And 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."
NIV: 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."
NASB: Then Samuel spoke to all the house of Israel, saying, 'If you are returning to the Lord with all your heart, then remove the foreign gods and the Ashtaroth from among you, and direct your hearts to the Lord and serve Him alone; and He will save you from the hand of the Philistines.'
CSB: Samuel told them, "If you are returning to the Lord with all your heart, get rid of the foreign gods and the Ashtoreths that are among you, dedicate yourselves to the Lord, and worship only him. Then he will rescue you from the Philistines."
NLT: Then Samuel said to all the people of Israel, 'If you want to return to the Lord with all your hearts, get rid of your foreign gods and your images of Ashtoreth. Turn your hearts to the Lord and obey him alone; then he will rescue you from the Philistines.'
KJV: And Samuel spake unto all the house of Israel, saying, If ye do return unto the Lord with all your hearts, then put away the strange gods and Ashtaroth from among you, and prepare your hearts unto the Lord, and serve him only: and he will deliver you out of the hand of the Philistines.
NKJV: Then Samuel spoke to all the house of Israel, saying, “If you return to the Lord with all your hearts, then put away the foreign gods and the Ashtoreths from among you, and prepare your hearts for the Lord, and serve Him only; and He will deliver you from the hand of the Philistines.”