That is the king of Israel
Jehoshaphat was wrongly identified as the king of Israel because Ahab had insisted that he wear kingly robes.
God turned them away from him
"God caused them to stop pursuing him"
It came about that
This phrase marks an important event in the story.