Deuteronomy 17
4And it be told thee, and thou hearest of it: then shalt thou inquire diligently; and, behold, if it be true, the thing is certain, such abomination hath been wrought in Israel:
5Then shalt thou bring forth that man or that woman, who have committed this wicked thing, unto thy gates, the man or the woman, and thou shalt stone them with stones till they die.
7The hand of the witnesses shall be first upon him to put him to death, and the hand of all the people at the last; and thou shalt put the evil away from the midst of thee.
8If a matter be unknown to thee for decision, between blood and blood, between plea and plea, and between bodily injury and injury, [or] matters of controversy within thy gates: then shalt thou arise, and get thee up unto the place which the Lord thy God will choose;
9And thou shalt come unto the priests, the Levites, and unto the judge that may be in those days, and thou shalt inquire, and they shall inform thee of the sentence of the case;
10And thou shalt do according to the sentence, which they may tell thee from that place which the Lord will choose, and thou shalt observe to do according to all that they may instruct thee;
11In accordance with the instruction which they may instruct thee, and according to the decision which they may say unto thee, shalt thou do: thou shalt not depart from the sentence which they may tell thee, to the right, or to the left.
13And all the people shall hear, and be afraid, and not act presumptuously any more.
14When thou art come unto the land which the Lord thy God giveth thee, and thou hast taken possession of it, and dwellest therein, and thou sayest, I wish to set a king over me, like all the nations that are round about me:
16Only he shall not acquire for himself many horses; so that he may not cause the people to return to Egypt, in order to acquire many horses; whereas the Lord hath said unto you, Ye shall henceforth not return on that way any more.
19And it shall be with him, and he shall read therein all the days of his life: in order that he may learn to fear the Lord his God, to keep all the words of this law and these statutes, to do them.
20So that his heart be not lifted up above his brethren, and so that he turn not aside from the commandment, to the right, or to the left: in order that he may live many days in his kingdom, he, and his children, in the midst of Israel.