David now mustered the men who were with him and appointed generals and captains to lead them.