“Now therefore, let the fear of the LORD be upon you; take care and do it, for there is no iniquity with the LORD our God, no partiality, nor taking of bribes.”
King Jehoshaphat appointed judges as local leaders in the fortified cities of Judah, and he told them to take their responsibility seriously because they were to judge on behalf of God (2 Chronicles 19:5-6). In verse 7 he stresses the importance of fearing the Lord—giving God proper reverence. If they did, they would strive to judge as God judges, without favoritism and not swayed by bribes or gifts.
For more about the biblical teaching about judging, see the article “What Did Jesus Mean by ‘Judge Not’?”