After mustering the troops he had with him, David placed officers in command of units of a thousand and units of a hundred.