English Standard Version
It was only in order that the generations of the people of Israel might know war, to teach war to those who had not known it before.New International Version
(he did this only to teach warfare to the descendants of the Israelites who had not had previous battle experience):Catholic Public Domain Version
so that afterward their sons might learn to contend with their enemies, and to have a willingness to do battle