Deuteronomy 16:18-20 NIV
18 Appoint judges and officials for each of your tribes in every town the Lord your God is giving you, and they shall judge the people fairly.
19 Do not pervert justice or show partiality. Do not accept a bribe, for a bribe blinds the eyes of the wise and twists the words of the innocent.
20 Follow justice and justice alone, so that you may live and possess the land the Lord your God is giving you.
Deuteronomy 17:8-13 NIV
8 If cases come before your courts that are too difficult for you to judge—whether bloodshed, lawsuits or assaults—take them to the place the Lord your God will choose.
9 Go to the Levitical priests and to the judge who is in office at that time. Inquire of them and they will give you the verdict.
10 You must act according to the decisions they give you at the place the Lord will choose. Be careful to do everything they instruct you to do.
11 Act according to whatever they teach you and the decisions they give you. Do not turn aside from what they tell you, to the right or to the left.
12 Anyone who shows contempt for the judge or for the priest who stands ministering there to the Lord your God is to be put to death. You must purge the evil from Israel.
13 All the people will hear and be afraid, and will not be contemptuous again.