He sought instead the God of his father and walked by his commandments, and not by what Israel was doing.
In context
2He posted troops in all the fortified towns of Judah and set garrisons in the land of Judah and in the towns of Ephraim that his father Asa had captured. 3Yahweh was with Jehoshaphat, because he walked in the earlier ways of David his father and did not consult the Baals. 4He sought instead the God of his father and walked by his commandments, and not by what Israel was doing. 5So Yahweh made the kingdom secure in his hand; all Judah brought Jehoshaphat tribute, and he came to have riches and honour in abundance. 6His heart grew bold in the ways of Yahweh, and he went further and removed the high places and the sacred poles from Judah.