This is because he has forsaken me, worshiped Astarte the goddess of the Sidonians, Chemosh the god of Moab, and Milcom the god of the Ammonites, and has not walked in my ways, doing what is right in my sight and keeping my statutes and my ordinances, as his father David did.
if they repent with all their heart and soul in the land of their enemies who took them captive and pray to you toward their land that you gave to their ancestors, the city that you have chosen, and the house that I have built for your name,
Moreover, the altar at Bethel, the high place erected by Jeroboam son of Nebat, who caused Israel to sin—he pulled down that altar along with the high place. He burned the high place, crushing it to dust; he also burned the sacred pole.
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.”