Deuteronomy 17:2

2 A man or woman in one of the towns the Lord gave you might be found doing something evil and breaking the Agreement.

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 If an ox or sheep has something wrong with it, do not offer it as a sacrifice to the Lord your God. He would hate that.
2 A man or woman in one of the towns the Lord gave you might be found doing something evil and breaking the Agreement.
3 That person may have served other gods and bowed down to them or to the sun or moon or stars of the sky, which I have commanded should not be done.
4 If someone has told you about it, you must look into the matter carefully. If it is true that such a hateful thing has happened in Israel,
5 take the man or woman who has done the evil thing to the city gates and throw stones at that person until he dies.
Scripture taken from the New Century Version. Copyright © 1987, 1988, 1991 by Thomas Nelson, Inc. Used by permission. All rights reserved.