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.
Whenever Samuel spoke to a group of people, he used many idioms: "to turn to" means "to worship"; "with your whole heart" means "completely"; and "rescue from the hand" means "rescued from the power." (See: [[rc://en/ta/man/jit/figs-idiom]])