Deuteronomy 17:2-5

EJ2000(i) 2 If there is found among you, within any of thy gates which the LORD thy God gives thee, man or woman that has wrought wickedness in the sight of the LORD thy God in transgressing his covenant 3 and has gone and served other gods and worshipped them or the sun or the moon or any of the host of heaven, which I have not commanded, 4 and it is told unto thee and thou hast heard of it and enquired diligently, and, behold, it is true, and the thing certain that such abomination is wrought in Israel, 5 then shalt thou bring forth that man or that woman who has committed that wicked thing unto thy gates, even that man or that woman, and shalt stone them with stones until they die.