Judges 3:1-2
Judges 3:1-2 AMP
Now these are the nations which the LORD left [in order] to test Israel by them (that is, all [the people of Israel] who had not [previously] experienced any of the wars in Canaan; only in order that the generations of the sons of Israel might be taught war, at least those who had not experienced it previously).