Deuteronomy 17:11-13
17:11 You must do what you are instructed, and the verdict they pronounce to you, without fail. Do not deviate right or left from what they tell you.
17:12 The person who pays no attention to the priest currently serving the Lord your God there, or to the verdict – that person must die, so that you may purge evil from Israel.
17:13 Then all the people will hear and be afraid, and not be so presumptuous again.