Read Deuteronomy 16:18 Using Other Translations
Judges and officers shalt thou make thee in all thy gates, which the LORD thy God giveth thee, throughout thy tribes: and they shall judge the people with just judgment.
"You shall appoint judges and officers in all your towns that the LORD your God is giving you, according to your tribes, and they shall judge the people with righteous judgment.
“Appoint judges and officials for yourselves from each of your tribes in all the towns the LORD your God is giving you. They must judge the people fairly.