Deuteronomy 22:8-23:7
When you build a new house, you shall make a parapet for your roof, so that you do not bring bloodguilt on your house if anyone should fall from it.
You shall not sow your vineyard with a second kind of seed, else the crop--from the seed you have sown--and the yield of the vineyard may not be used. You shall not plow with an ox and an ass together. You shall not wear cloth combining wool and linen.
You shall make tassels on the four corners of the garment with which you cover yourself.
A man marries a woman and cohabits with her. Then he takes an aversion to her and makes up charges against her and defames her, saying, "I married this woman; but when I approached her, I found that she was not a virgin." In such a case, the girl's father and mother shall produce the evidence of the girl's virginity before the elders of the town at the gate. And the girl's father shall say to the elders, "I gave this man my daughter to wife, but he has taken an aversion to her; so he has made up charges, saying, 'I did not find your daughter a virgin.' But here is the evidence of my daughter's virginity!" And they shall spread out the cloth before the elders of the town. The elders of that town shall then take the man and flog him, and they shall fine him a hundred [shekels of] silver and give it to the girl's father; for the man has defamed a virgin in Israel. Moreover, she shall remain his wife; he shall never have the right to divorce her.
But if the charge proves true, the girl was found not to have been a virgin, then the girl shall be brought out to the entrance of her father's house, and the men of her town shall stone her to death; for she did a shameful thing in Israel, committing fornication while under her father's authority. Thus you will sweep away evil from your midst.
If a man is found lying with another man's wife, both of them--the man and the woman with whom he lay--shall die. Thus you will sweep away evil from Israel.
In the case of a virgin who is engaged to a man--if a man comes upon her in town and lies with her, you shall take the two of them out to the gate of that town and stone them to death: the girl because she did not cry for help in the town, and the man because he violated another man's wife. Thus you will sweep away evil from your midst. But if the man comes upon the engaged girl in the open country, and the man lies with her by force, only the man who lay with her shall die, but you shall do nothing to the girl. The girl did not incur the death penalty, for this case is like that of a man attacking another and murdering him. He came upon her in the open; though the engaged girl cried for help, there was no one to save her.
If a man comes upon a virgin who is not engaged and he seizes her and lies with her, and they are discovered, the man who lay with her shall pay the girl's father fifty [shekels of] silver, and she shall be his wife. Because he has violated her, he can never have the right to divorce her.
No man shall marry his father's former wife, so as to remove his father's garment.
No one whose testes are crushed or whose member is cut off shall be admitted into the congregation of the Lord.
No one misbegotten shall be admitted into the congregation of the Lord; none of his descendants, even in the tenth generation, shall be admitted into the congregation of the Lord.
No Ammonite or Moabite shall be admitted into the congregation of the Lord; none of their descendants, even in the tenth generation, shall ever be admitted into the congregation of the Lord, because they did not meet you with food and water on your journey after you left Egypt, and because they hired Balaam son of Beor, from Pethor of Aram-naharaim, to curse you. But the Lord your God refused to heed Balaam; instead, the Lord your God turned the curse into a blessing for you, for the Lord your God loves you. You shall never concern yourself with their welfare or benefit as long as you live.