Leviticus 19:20

If a man will have slept in sexual intercourse with a woman, who is a servant and who is also able to be married, and yet he has not redeemed her with a price, nor paid to set her free, they both shall be beaten, but they shall not die, for she was not a free woman

Other versions

King James Version

And whosoever lieth carnally with a woman, that is a bondmaid, betrothed to an husband, and not at all redeemed, nor freedom given her; she shall be scourged; they shall not be put to death, because she was not free.

English Standard Version

"If a man lies sexually with a woman who is a slave, assigned to another man and not yet ransomed or given her freedom, a distinction shall be made. They shall not be put to death, because she was not free;

New International Version

"'If a man sleeps with a woman who is a slave girl promised to another man but who has not been ransomed or given her freedom, there must be due punishment. Yet they are not to be put to death, because she had not been freed.