Deuteronomy 17:8-10

8 If there arise a matter too hard for you in judgment, between blood and blood, between plea and plea, and between stroke and stroke, being matters of controversy within your gates: then shall you arise, and get you up into the place which the LORD your God shall choose;

9 And you shall come to the priests the Levites, and to the judge that shall be in those days, and inquire; and they shall show you the sentence of judgment:

10 And you shall do according to the sentence, which they of that place which the LORD shall choose shall show you; and you shall observe to do according to all that they inform you: