Deuteronomy 20:9

:

It shall be, when the officers have made an end of speaking to the people, that they shall appoint captains of armies at the head of the people.