Deuteronomy 17:3-5

MSTC(i) 3 so that they have gone and served strange gods and worshipped them, whether it be the sun or moon or anything contained in heaven which I forbade, 4 and it was told thee and thou hast heard of it: Then thou shalt enquire diligently. And if it be true and the thing of a surety that such abomination is wrought in Israel, 5 then thou shalt bring forth that man or that woman which have committed that wicked thing, unto thy gates and shalt stone them with stones and they shall die.