Deuteronomy 17:9

9 then thou shalt arise and go up to the place which the Lord thy God shall choose, and thou shalt come to the priests the Levites, and to the judge who shall be in those days, and they shall search out and report the judgment to thee.