Deuteronomy 21:10-21:21
When you take the field against your enemies, and the Lord your God delivers them into your power and you take some of them captive, and you see among the captives a beautiful woman and you desire her and would take her to wife, you shall bring her into your house, and she shall trim her hair, pare her nails, and discard her captive's garb. She shall spend a month's time in your house lamenting her father and mother; after that you may come to her and possess her, and she shall be your wife. Then, should you no longer want her, you must release her outright. You must not sell her for money: since you had your will of her, you must not enslave her.
If a man has two wives, one loved and the other unloved, and both the loved and the unloved have borne him sons, but the first-born is the son of the unloved one--when he wills his property to his sons, he may not treat as first-born the son of the loved one in disregard of the son of the unloved one who is older. Instead, he must accept the first-born, the son of the unloved one, and allot to him a double portion of all he possesses; since he is the first fruit of his vigor, the birthright is his due.
If a man has a wayward and defiant son, who does not heed his father or mother and does not obey them even after they discipline him, his father and mother shall take hold of him and bring him out to the elders of his town at the public place of his community. They shall say to the elders of his town, "This son of ours is disloyal and defiant; he does not heed us. He is a glutton and a drunkard." Thereupon the men of his town shall stone him to death. Thus you will sweep out evil from your midst: all Israel will hear and be afraid.