Deuteronomy 17:2

2 "If there is found among you, within any of your gates [in any city] that ADONAI your God gives you, a man or woman who does what ADONAI your God sees as wicked, transgressing his covenant

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 "You are not to sacrifice to ADONAI your God a cow or sheep that has a defect or anything wrong with it; that would be an abomination to ADONAI your God.
2 "If there is found among you, within any of your gates [in any city] that ADONAI your God gives you, a man or woman who does what ADONAI your God sees as wicked, transgressing his covenant
3 by going and serving other gods and worshipping them, the sun, the moon, or anything in the sky - something I have forbidden -
4 and it is told to you, or you hear about it; then you are to investigate the matter diligently. If it is true, if it is confirmed that such detestable things are being done in Isra'el;
5 then you are to bring the man or woman who has done this wicked thing to your city gates, and stone that man or woman to death.
Complete Jewish Bible Copyright 1998 by David H. Stern. Published by Jewish New Testament Publications, Inc. All rights reserved. Used by permission.