II Chronicles 17:3 Midrash

וַיְהִ֥י יְהוָ֖ה עִם־יְהוֹשָׁפָ֑ט כִּ֣י הָלַ֗ךְ בְּדַרְכֵ֞י דָּוִ֤יד אָבִיו֙ הָרִ֣אשֹׁנִ֔ים וְלֹ֥א דָרַ֖שׁ לַבְּעָלִֽים׃

And the LORD was with Jehoshaphat, because he walked in the first ways of his father David, and sought not unto the Baalim;

Read midrashic interpretation of II Chronicles 17:3: and classical rabbinic exegesis.