Deuteronomy 17:2-7

a If there is found among you, within any of your towns that the  Lord your God is giving you, a man or woman who does what is evil in the sight of the  Lord your God b in transgressing his covenant, and has gone and served other gods and worshiped them, or c the sun or the moon or any of the host of heaven, d which I have forbidden, and it is told you and you hear of it, then you shall inquire e diligently, and if it is true and certain that such an abomination has been done in Israel, then you shall bring out to your gates that man or woman who has done this evil thing, and you f shall stone that man or woman to death with stones. g On the evidence of two witnesses or of three witnesses the one who is to die shall be put to death; a person shall not be put to death on the evidence of one witness. h The hand of the witnesses shall be first against him to put him to death, and afterward the hand of all the people. So i you shall purge
Septuagint drive out; also verse 12
the evil
Or  evil person; also verse 12
from your midst.

Copyright information for ESV