Deuteronomy 13:9-11

13:9 Instead, you must kill him without fail! Your own hand must be the first to strike him, and then the hands of the whole community. 13:10 You must stone him to death because he tried to entice you away from the Lord your God, who delivered you from the land of Egypt, that place of slavery. 13:11 Thus all Israel will hear and be afraid; no longer will they continue to do evil like this among you.

Deuteronomy 13:15-17

13:15 you must by all means slaughter the inhabitants of that city with the sword; annihilate with the sword everyone in it, as well as the livestock. 13:16 You must gather all of its plunder into the middle of the plaza and burn the city and all its plunder as a whole burnt offering to the Lord your God. It will be an abandoned ruin forever – it must never be rebuilt again. 13:17 You must not take for yourself anything that has been placed under judgment. Then the Lord will relent from his intense anger, show you compassion, have mercy on you, and multiply you as he promised your ancestors.