Deuteronomy 17:2

2 In one of the cities the LORD your God is giving you, there may be a man or woman among you who is doing what the LORD considers evil. This person may be disregarding the conditions of the LORD's promise

Deuteronomy 17:2 Meaning and Commentary

Deuteronomy 17:2

If there be found among you, within any of thy gates which the
Lord thy God giveth thee
In any of their cities in the land of Canaan:

man or woman that hath wrought wickedness in the sight of the Lord thy
God:
as all that is wrought is in the sight of the omniscient God; here it means not any kind of wickedness, for there is none lives without committing sin of one sort or another, all which is known to God the searcher of hearts, but such wickedness as is after described:

in transgressing his covenant;
that is, his law, and particularly the first table of it, which respects divine worship, and which is in the nature of a marriage contract or covenant; which, as that is transgressed by adultery committed by either party, so the covenant between God and Israel was transgressed by idolatry, which is spiritual adultery, and going a whoring after other gods, as it follows:

Deuteronomy 17:2 In-Context

1 Never offer an ox or a sheep that has a defect or anything seriously wrong with it as a sacrifice to the LORD your God. That would be disgusting to him.
2 In one of the cities the LORD your God is giving you, there may be a man or woman among you who is doing what the LORD considers evil. This person may be disregarding the conditions of the LORD's promise
3 by worshiping and bowing down to other gods, the sun, the moon, or the whole army of heaven. I have forbidden this.
4 When you are told about it, investigate it thoroughly. If it's true and it can be proven that this disgusting thing has been done in Israel,
5 then bring the man or woman who did this evil thing to the gates of your city, and stone that person to death.
GOD'S WORD® is a copyrighted work of God's Word to the Nations. Copyright © 1995 by God's Word to the Nations. All rights reserved. Used by permission.