WEB
It happened, when the captains of the chariots saw Jehoshaphat, that they said, “It is the king of Israel!” Therefore they turned around to fight against him. But Jehoshaphat cried out, and Yahweh helped him; and God moved them to depart from him.
YLT
And it cometh to pass at the heads of the charioteers seeing Jehoshaphat, that they have said, ‘The king of Israel he is,’ and they turn round against him to fight, and Jehoshaphat crieth out, and Jehovah hath helped him, and God enticeth them from him,