18 But they fled before Israel, and David killed seven hundred of their charioteers and forty thousand of their foot soldiers.a He also struck down Shobak the commander of their army, and he died there.