Deuteronomy 17:4-7 The Message (MSG)
2-5 If you find anyone within the towns that God, your God, is giving you doing what is wrong in God’s eyes, breaking his covenant by going off to worship other gods, bowing down to them—the sun, say, or the moon, or any rebel sky-gods—look at the evidence and investigate carefully. If you find that it is true, that, in fact, an abomination has been committed in Israel, then you are to take the man or woman who did this evil thing outside your city gates and stone the man or the woman. Hurl stones at the person until dead.
6-7 But only on the testimony of two or three witnesses may a person be put to death. No one may be put to death on the testimony of one witness. The witnesses must throw the first stones in the execution, then the rest of the community joins in. You have to purge the evil from your community.