Deut 22:23-24

23If there is a young woman, a virgin already engaged to be married, and a man meets her in the town and lies with her,24you shall bring both of them to the gate of that town and stone them to death, the young woman because she did not cry for help in the town and the man because he violated his neighbor's wife. So you shall purge the evil from your midst.