But the Aramean army ran away from the Israelites, and David killed 700 charioteers and 40,000 infantry. He also attacked Shobach, their army commander, and he died there.