And David numbered the people that were with him, and set captains of thousands and captains of hundreds over them.
Then David reviewed his troops and appointed over them commanders of hundreds and of thousands.
Read 2 Samuel 18