Adonai was with Jehoshaphat because he walked in the first ways of his father David. He did not seek the Baalim