Deuteronomy 13:8-18

8 thou dost not consent to him, nor hearken unto him, nor doth thine eye have pity on him, nor dost thou spare, nor dost thou cover him over.
9 `But thou dost surely kill him; thy hand is on him, in the first place, to put him to death, and the hand of all the people last;
10 and thou hast stoned him with stones, and he hath died, for he hath sought to drive thee away from Jehovah thy God, who is bringing thee out of the land of Egypt, out of a house of servants;
11 and all Israel do hear and fear, and add not to do like this evil thing in thy midst.
12 `When thou hearest, in one of thy cities which Jehovah thy God is giving to thee to dwell there, [one] saying,
13 Men, sons of worthlessness, have gone out of thy midst, and they force away the inhabitants of their city, saying, Let us go and serve other gods, which ye have not known --
14 and thou hast enquired, and searched, and asked diligently, and lo, truth; the thing is established; this abomination hath been done in thy midst:
15 `Thou dost surely smite the inhabitants of that city by the mouth of the sword; devoting it, and all that [is] in it, even its cattle, by the mouth of the sword;
16 and all its spoil thou dost gather unto the midst of its broad place, and hast burned with fire the city and all its spoil completely, before Jehovah thy God, and it hath been a heap age-during, it is not built any more;
17 and there doth not cleave to thy hand any of the devoted thing, so that Jehovah doth turn back from the fierceness of His anger, and hath given to thee mercies, and loved thee, and multiplied thee, as He hath sworn to thy fathers,
18 when thou dost hearken to the voice of Jehovah thy God, to keep all his commands which I am commanding thee to-day, to do that which [is] right in the eyes of Jehovah thy God.