The Lord was with Jehoshaphat because in his early years he walked in the ways his father David had followed. He did not consult the Baals