Deuteronomy 17:2-13

YLT(i) 2 `When there is found in thy midst, in one of thy cities which Jehovah thy God is giving to thee, a man or a woman who doth the evil thing in the eyes of Jehovah thy God by transgressing His covenant, 3 and he doth go and serve other gods, and doth bow himself to them, and to the sun, or to the moon, or to any of the host of the heavens, which I have not commanded— 4 and it hath been declared to thee, and thou hast heard, and hast searched diligently, and lo, truth; the thing is established; this abomination hath been done in Israel— 5 `Then thou hast brought out that man, or that woman, who hath done this evil thing, unto thy gates—the man or the woman—and thou hast stoned them with stones, and they have died. 6 By the mouth of two witnesses or of three witnesses is he who is dead put to death; he is not put to death by the mouth of one witness; 7 the hand of the witnesses is on him, in the first place, to put him to death, and the hand of all the people last; and thou hast put away the evil thing out of thy midst.
8 `When anything is too hard for thee for judgment, between blood and blood, between plea and plea, and between stroke and stroke—matters of strife within thy gates—then thou hast risen, and gone up unto the place on which Jehovah thy God doth fix, 9 and hast come in unto the priests, the Levites, and unto the judge who is in those days, and hast inquired, and they have declared to thee the word of judgment, 10 and thou hast done according to the tenor of the word which they declare to thee (they of that place which Jehovah doth choose; and thou hast observed to do according to all that they direct thee. 11 `According to the tenor of the law which they direct thee, and according to the judgment which they say to thee thou dost do; thou dost not turn aside from the word which they declare to thee, right or left. 12 And the man who acteth with presumption, so as not to hearken unto the priest (who is standing to serve there Jehovah thy God), or unto the judge, even that man hath died, and thou hast put away the evil thing from Israel, 13 and all the people do hear and fear, and do not presume any more.