Samuel spoke to all the house of Israel, saying, If you do return to Yahweh with all your heart, then put away the foreign gods and the Ashtaroth from among you, and direct your hearts to Yahweh, and serve him only; and he will deliver you out of the hand of the Philistines.
This section sounds more like the Book of Judges than does any other in 1 or 2 Samuel. The cycle of religious experience repeated six times in that book occurs here as well. That cycle consists of blessing, apostasy, discipline, repentance, deliverance, rededication, and blessing. Samuel exercised the same function as the judges whose experiences appear on the pages of Judges.