Deuteronomy 16:18

18 You shall appoint judges and officials throughout your tribes, in all your towns that the Lord your God is giving you, and they shall render just decisions for the people.

Deuteronomy 16:18 In-Context

16 Three times a year all your males shall appear before the Lord your God at the place that he will choose: at the festival of unleavened bread, at the festival of weeks, and at the festival of booths. They shall not appear before the Lord empty-handed;
17 all shall give as they are able, according to the blessing of the Lord your God that he has given you.
18 You shall appoint judges and officials throughout your tribes, in all your towns that the Lord your God is giving you, and they shall render just decisions for the people.
19 You must not distort justice; you must not show partiality; and you must not accept bribes, for a bribe blinds the eyes of the wise and subverts the cause of those who are in the right.
20 Justice, and only justice, you shall pursue, so that you may live and occupy the land that the Lord your God is giving you.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.