Deuteronomy 17:2-5

ACV(i) 2 If there be found in the midst of thee, within any of thy gates which LORD thy God gives thee, man or woman, who does that which is evil in the sight of LORD thy God, 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 host of heaven, which I have not commanded, 4 and it be told thee, and thou have heard of it, then shall thou inquire diligently. And, behold, if it be true, and the thing certain, that such abomination is wrought in Israel, 5 then thou shall bring forth that man or that woman, who has done this evil thing, to thy gates, even the man or the woman, and thou shall stone them to death with stones.