Deuteronomy 20:9

9 And it will be, when the officers have made an end of speaking to the people, that they will appoint captains of hosts at the head of the people.