Deuteronomy 16:18 WEB

18 Judges and officers shall you make you in all your gates, which Yahweh your God gives you, according to your tribes; and they shall judge the people with righteous judgment.