But then they ran away from Israel. David killed 7,000 of their chariot riders. He killed 40,000 of their soldiers who were on foot. He also killed Shophach, the commander of their army.