Deuteronomy 13:5
5 But vthat prophet or that dreamer of dreams shall be put to death, because he has taught rebellion against the Lord your God, who brought you out of the land of Egypt and redeemed you out of the house of slavery, to make you leave the way in which the Lord your God commanded you to walk. wSo you shall purge the evil1 from your midst.
Deuteronomy 17:7
7 rThe hand of the witnesses shall be first against him to put him to death, and afterward the hand of all the people. So syou shall purge1 the evil2 from your midst.