Deuteronomy 16:21 - 17:7
21 “You shall not plant for yourself an Asherah of any kind of tree beside the altar of Yahweh your God, which you shall make for yourself. 22 And you shall not set up for yourself a sacred pillar which Yahweh your God hates. “You shall not sacrifice to Yahweh your God an ox or a sheep which has a defect or any blemish, for that is an abominable thing to Yahweh your God. 2 “If there is found in your midst, in any of your gates of the towns which Yahweh your God is giving you, a man or a woman who does what is evil in the sight of Yahweh your God, by trespassing against His covenant, 3 and has gone and served other gods and worshiped them, or the sun or the moon or any of the heavenly host, which I have not commanded, 4 and if it is told to you and you have heard of it, then you shall inquire thoroughly. Behold, if it is true and the matter is confirmed that this abomination has been done in Israel, 5 then you shall bring out that man or that woman who has done this evil deed to your gates, that is, the man or the woman, and you shall stone them, and they will die. 6 On the mouth of two witnesses or three witnesses, he who is to die shall be put to death; he shall not be put to death on the mouth of one witness. 7 The hand of the witnesses shall be first against him to put him to death, and afterward the hand of all the people. So you shall purge the evil from your midst.