Deuteronomy 1:14-16

14 And you agreed that this was a good thing to do.

15 So I took the wise and experienced leaders you chose from your tribes, and I placed them in charge of you. Some were responsible for a thousand people, some for a hundred, some for fifty, and some for ten. I also appointed other officials throughout the tribes.

16 "At that time I instructed them, 'Listen to the disputes that come up among your people. Judge every dispute fairly, whether it concerns only your own people or involves foreigners who live among you.