Deuteronomy 16:21-17:7 World English Bible (WEB)
21 You shall not plant for yourselves an Asherah of any kind of tree beside the altar of Yahweh your God, which you shall make for yourselves. 22 Neither shall you set yourself up a sacred stone which Yahweh your God hates.
17 You shall not sacrifice to Yahweh your God an ox, or a sheep, in which is a defect, or anything evil; for that is an abomination to Yahweh your God. 2 If there is found among you, within any of your gates which Yahweh your God gives you, a man or woman who does that which is evil in Yahweh your God’s sight, in transgressing his covenant, 3 and has gone and served other gods, and worshiped them, or the sun, or the moon, or any of the stars of the sky, which I have not commanded; 4 and you are told, and you have heard of it, then you shall inquire diligently. Behold, if it is true, and the thing certain, that such abomination is done in Israel, 5 then you shall bring out that man or that woman, who has done this evil thing, to your gates, even that same man or woman; and you shall stone them to death with stones. 6 At the mouth of two witnesses, or three witnesses, he who is to die shall be put to death. At the mouth of one witness he shall not be put to death. 7 The hand of the witnesses shall be first on him to put him to death, and afterward the hand of all the people. So you shall remove the evil from among you.
Deuteronomy 16:21-17:7 New International Version (NIV)
Worshiping Other Gods
21 Do not set up any wooden Asherah pole beside the altar you build to the Lord your God, 22 and do not erect a sacred stone, for these the Lord your God hates.
17 Do not sacrifice to the Lord your God an ox or a sheep that has any defect or flaw in it, for that would be detestable to him.
2 If a man or woman living among you in one of the towns the Lord gives you is found doing evil in the eyes of the Lord your God in violation of his covenant, 3 and contrary to my command has worshiped other gods, bowing down to them or to the sun or the moon or the stars in the sky, 4 and this has been brought to your attention, then you must investigate it thoroughly. If it is true and it has been proved that this detestable thing has been done in Israel, 5 take the man or woman who has done this evil deed to your city gate and stone that person to death. 6 On the testimony of two or three witnesses a person is to be put to death, but no one is to be put to death on the testimony of only one witness. 7 The hands of the witnesses must be the first in putting that person to death, and then the hands of all the people. You must purge the evil from among you.