The anger of Yahweh was kindled against Israel, and he sold them into the hand of the Philistines, and into the hand of the children of Ammon.
So, the children of Israel said unto the LORD, we have sinned: [they began confessing] do thou unto us whatsoever seems good to you; deliver us only, we pray thee, today. And thy put away the strange gods from among them, they served the LORD: and his soul was grieved for the misery of Israel ( Judges 10:15-16 ).