But the Arameans fled before Israel, and David killed 7,000 of their charioteers and 40,000 foot soldiers. He also killed Shophach, commander of the army.