Deuteronomy 17:2-7 - The Judicial Procedure For Idolatry

2 If there is found among you, inside any of your gates which Jehovah your God gives you, a man or woman who does what is evil in the sight of Jehovah your God, in breaking His covenant, 3 and has gone and served other gods and worshiped them, either the sun, or moon, or any of the host of heaven, which I have not commanded, 4 and if it is told you, and you have heard and inquired carefully, and, behold, it is true and the thing is certain, such abomination is done in Israel; 5 then you shall bring forth that man or that woman who has committed that evil thing, to your gates, even that man or that woman, and shall stone them with stones until they die. 6 At the mouth of two witnesses or three witnesses shall he that is worthy of death be put to death. At the mouth of one witness he shall not be put to death. 7 The hands of the witnesses shall be first on him to put him to death, and afterwards the hands of all the people. So you shall put the evil away from among you.