2 Chronicles 19:1-6

1 When Jehoshaphat king of Judah returned safely to his palace in Jerusalem,
2 Jehu the seer, the son of Hanani, went out to meet him and said to the king, “Should you help the wicked and lovea those who hate the LORD? Because of this, the wrath of the LORD is on you.
3 There is, however, some good in you, for you have rid the land of the Asherah poles and have set your heart on seeking God.”

Jehoshaphat Appoints Judges

4 Jehoshaphat lived in Jerusalem, and he went out again among the people from Beersheba to the hill country of Ephraim and turned them back to the LORD, the God of their ancestors.
5 He appointed judges in the land, in each of the fortified cities of Judah.
6 He told them, “Consider carefully what you do, because you are not judging for mere mortals but for the LORD, who is with you whenever you give a verdict.