Deuteronomy 20:9

New American Standard Bible (NASB)
When the officers have finished speaking to the people, they shall appoint commanders of armies at the head of the people.

Read Deuteronomy 20:9 in other translations