Judges 3:2

(this was only so that the generations of the children of Israel might be taught to know war, at least those who had not formerly known it),