They were [left], to prove Israel by them, to know whether they would listen to the commandments of Yahweh, which he commanded their fathers by Moses.
And the Spirit of the LORD came upon him, and he judged Israel, and went out to war: and the LORD delivered this Mesopotamia king into his hand; and his hand prevailed against him. And the land had rest for forty years ( Judges 3:10-11 ).