Deuteronomy 16:18

You shall appoint judges and magistrates at all your gates, which the Lord your God will give to you, throughout each of your tribes, so that they may judge the people with a just judgment

Other versions

King James Version

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.

English Standard Version

"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.

New International Version

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.