Deuteronomy 17:8-12

8 "If any case arises requiring decision between one kind of homicide and another, one kind of legal right and another, or one kind of assault and another, any case within your towns which is too difficult for you, then you shall arise and go up to the place which the LORD your God will choose,
9 and coming to the Levitical priests, and to the judge who is in office in those days, you shall consult them, and they shall declare to you the decision.
10 Then you shall do according to what they declare to you from that place which the LORD will choose; and you shall be careful to do according to all that they direct you;
11 according to the instructions which they give you, and according to the decision which they pronounce to you, you shall do; you shall not turn aside from the verdict which they declare to you, either to the right hand or to the left.
12 The man who acts presumptuously, by not obeying the priest who stands to minister there before the LORD your God, or the judge, that man shall die; so you shall purge the evil from Israel.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.