Deuteronomy 17:9-12 NIV

9 Go to the priests, who are Levites,1 and to the judge2 who is in office at that time. Inquire of them and they will give you the verdict.3

References for Deuteronomy 17:9

10 You must act according to the decisions they give you at the place the LORD will choose. Be careful to do everything they direct you to do.
11 Act according to the law they teach you and the decisions they give you. Do not turn aside from what they tell you, to the right or to the left.4

References for Deuteronomy 17:11

12 The man who shows contempt5 for the judge or for the priest who stands ministering6 there to the LORD your God must be put to death.7 You must purge the evil from Israel.8

References for Deuteronomy 17:12