Deuteronomy 19:17

19:17 then both parties to the controversy must stand before the Lord, that is, before the priests and judges who will be in office in those days.

Deuteronomy 25:1

25:1 If controversy arises between people, they should go to court for judgment. When the judges hear the case, they shall exonerate the innocent but condemn the guilty.

Deuteronomy 17:8

Appeal to a Higher Court

17:8 If a matter is too difficult for you to judge – bloodshed, legal claim, or assault – matters of controversy in your villages – you must leave there and go up to the place the Lord your God chooses.