Deuteronomy 17:2–3
2 k“If there is found among you, within any of your towns that the Lord your God is giving you, a man or woman who does what is evil in the sight of the Lord your God, lin transgressing his covenant, 3 and has gone and served other gods and worshiped them, or mthe sun or the moon or any of the host of heaven, nwhich I have forbidden,
Deuteronomy 17:5
5 then you shall bring out to your gates that man or woman who has done this evil thing, and you pshall stone that man or woman to death with stones.