Read this passage and open each verse for the full verse feed and commentary tools.
5then you shall bring out to your gates that man or woman who has committed that wicked thing, and shall stone to death that man or woman with stones. 6Whoever is deserving of death shall be put to death on the testimony of two or three witnesses; he shall not be put to death on the testimony of one witness. 7The hands of the witnesses shall be the first against him to put him to death, and afterward the hands of all the people. So you shall put away the evil from among you.
Deuteronomy 17:5-7 (NKJV)