Deuteronomy 1:16
1:16 I furthermore admonished your judges at that time that they should pay attention to issues among your fellow citizens and judge fairly, whether between one citizen and another or a citizen and a resident foreigner.
Deuteronomy 16:18
Provision for Justice
16:18 You must appoint judges and civil servants for each tribe in all your villages that the Lord your God is giving you, and they must judge the people fairly.