David consulted with all his officials, including the generals and captains of his army.