The Lord was with Jehoshaphat because he followed the ways of his father David before him. He did not consult the Baals