"become completely devoted to worshiping and obeying Yahweh only". Samuel told the people to get rid of all their idols and worship Yahweh alone. The people were obedient. When the Philistines heard the Israelites were all gathered together, the Philistines attacked, but God defeated them. There was a time of peace during which Samuel settled disputes between the people as the judges had done before.