2 Chronicles 17:3-4

17:3 The Lord was with Jehoshaphat because he followed in his ancestor David’s footsteps at the beginning of his reign. He did not seek the Baals, 17:4 but instead sought the God of his ancestors and obeyed his commands, unlike the Israelites.