King David consulted with all the officers in command of units of a thousand men and units of a hundred men.