Read this passage and open each verse for the full verse feed and commentary tools.
2“When you begin living in the towns the Lord your God is giving you, a man or woman among you might do evil in the sight of the Lord your God and violate the covenant. 3For instance, they might serve other gods or worship the sun, the moon, or any of the stars—the forces of heaven—which I have strictly forbidden. 4When you hear about it, investigate the matter thoroughly. If it is true that this detestable thing has been done in Israel, 5then the man or woman who has committed such an evil act must be taken to the gates of the town and stoned to death. 6But never put a person to death on the testimony of only one witness. There must always be two or three witnesses. 7The witnesses must throw the first stones, and then all the people may join in. In this way, you will purge the evil from among you.
Deuteronomy 17:2-7 (NLT)