Deuteronomy 1:16
At that time I charged your judges: “Hear the disputes between your brothers, and judge fairly between a man and his brother or a foreign resident.
Berean Standard Bible
And I charged your judges at that time, saying, Hear the causes between your brethren, and judge righteously between every man and his brother, and the stranger that is with him.
I commanded your judges at that time, saying, “Hear cases between your brothers and judge righteously between a man and his brother, and the foreigner who is living with him.