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

Read 2 Chronicles 17:3 Using Other Translations

And the LORD was with Jehoshaphat, because he walked in the first ways of his father David, and sought not unto Baalim;
The LORD was with Jehoshaphat, because he walked in the earlier ways of his father David. He did not seek the Baals,
The LORD was with Jehoshaphat because he followed the example of his father’s early years and did not worship the images of Baal.