Then David mustered the people who were with him and set commanders of thousands and captains of hundreds over them.