Deuteronomy 17:2

2 If [there] is found in one of your {towns} that Yahweh your God [is] giving to you a man or a woman that does evil in the eyes of Yahweh your God to transgress 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 shall not sacrifice to Yahweh your God an ox or sheep {that has a physical defect} {of anything seriously wrong}, for that [is] a detestable thing to Yahweh your God.
2 If [there] is found in one of your {towns} that Yahweh your God [is] giving to you a man or a woman that does evil in the eyes of Yahweh your God to transgress his covenant
3 and by going and serving other gods and [so] he bows down to them and to the sun or to the moon or to any [of] the host of heaven {which I have forbidden},
4 and it is reported to you or you hear [about it] and you enquire [about it] thoroughly and, indeed, [the] trustworthiness of the deed [has] been established, it {has occurred}, this detestable thing, in Israel,
5 then you shall bring out that man or that woman who has done this evil thing to your gates; that is, the man or the woman, and you shall stone them with stones {to death}.

Footnotes 1

Scripture quotations marked (LEB) are from the Lexham English Bible. Copyright 2012 Logos Bible Software. Lexham is a registered trademark of Logos Bible Software.