Deuteronomy 17:5

5 then the man or woman who has committed such an evil act must be taken to the gates of the town and stoned to death.

Deuteronomy 17:5 Meaning and Commentary

Deuteronomy 17:5

Thou shall bring forth that man or that woman which have
committed the wicked thing
Idolatry in any of the above instances: this must be supposed to be done after he or she have been had before a court of judicature, and have been tried and found guilty, and sentence passed on them, then they were to be brought forth to execution:

unto thy gates;
the Targum of Jonathan says, unto the gates of your sanhedrim, or court of judicature; but Jarchi observes, that this is a mistake of the paraphrase, for he says, we are taught by tradition that "thy gate" is the gate in which he has served or committed idolatry; and so says Maimonides F4, they do not stone a man but at the gate where he served or worshipped; but if the greatest part of the city are Heathens, they stone him at the door of the sanhedrim; and this is received from tradition, that "to thy gates" is the gate at which he served, and not where his judgment is finished:

[even] that man or that woman;
this is repeated, and the woman as well as the man is expressed, to show that no compassion is to be had on her as is usual, nor to be spared on account of the weakness and tenderness of her sex, but she as well as the man must be brought forth and executed according to her sentence, without any mercy shown; and this is observed to show the resentment of the divine Majesty, and his indignation at this sin:

and shalt stone them with stones until they die;
of the manner of stoning men and women, (See Gill on Acts 7:58).


FOOTNOTES:

F4 Hilchot Sanhedrin, c. 15. sect. 2.

Deuteronomy 17:5 In-Context

3 For instance, they might serve other gods or worship the sun, the moon, or any of the stars—the forces of heaven—which I have strictly forbidden.
4 When you hear about it, investigate the matter thoroughly. If it is true that this detestable thing has been done in Israel,
5 then the man or woman who has committed such an evil act must be taken to the gates of the town and stoned to death.
6 But never put a person to death on the testimony of only one witness. There must always be two or three witnesses.
7 The witnesses must throw the first stones, and then all the people may join in. In this way, you will purge the evil from among you.
Holy Bible. New Living Translation copyright© 1996, 2004, 2007, 2013 by Tyndale House Foundation. Used by permission of Tyndale House Publishers Inc., Carol Stream, Illinois 60188. All rights reserved.