Deuteronomy 17:2-7

2 aIf 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, bin transgressing his covenant, 3and has gone and served other gods and worshiped them, or cthe sun or the moon or any of the host of heaven, dwhich I have forbidden, 4and it is told you and you hear of it, then you shall inquire ediligently, and if it is true and certain that such an abomination has been done in Israel, 5then you shall bring out to your gates that man or woman who has done this evil thing, and you fshall stone that man or woman to death with stones. 6 gOn 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. 7 hThe hand of the witnesses shall be first against him to put him to death, and afterward the hand of all the people. So iyou shall purge
Septuagint drive out; also verse 12
the evil
Or  evil person; also verse 12
from your midst.

Copyright information for ESV