Deuteronomy 22:22-24

MLV(i) 22 If a man be found lying with a woman married to a husband, then they will both of them die, the man that lay with the woman and the woman. So will you put away the evil from Israel.
23 If there is a maiden who is a virgin betrothed to a husband and a man finds her in the city and lies with her, 24 then you* will bring them both out to the gate of that city. And you* will stone them to death with stones, the maiden, because she did not cry out, being in the city and the man, because he has humbled his neighbor's wife. So you will put away the evil from the midst of you.