Deuteronomy 16:18

New American Standard Bible (NASB)
“You shall appoint for yourself judges and officers in all your [j]towns which the Lord your God is giving you, according to your tribes, and they shall judge the people with righteous judgment.

Read Deuteronomy 16:18 in other translations