Leviticus 19:20–22
"If a man has sexual relations with a woman who is a slave, designated for another man but not ransomed or given her freedom, an inquiry shall be held. They shall not be put to death, since she has not been freed; but he shall bring a guilt offering for himself to the Lord, at the entrance of the tent of meeting, a ram as guilt offering. And the priest shall make atonement for him with the ram of guilt offering before the Lord for his sin that he committed; and the sin he committed shall be forgiven him."


