Deuteronomy 22:20-22

But if the thing is true, and evidences of virginity are not found for the young woman, then they shall bring out the young woman to the door of her father’s house, and the men of her city shall stone her to death with stones, because she has done a disgraceful thing in Israel, to play the harlot in her father’s house. So you shall put away the evil from among you. If a man is found lying with a woman married to a husband, then both of them shall die — the man that lay with the woman, and the woman; so you shall put away the evil from Israel. — Deuteronomy 22:20-22, NKJV