Deuteronomy 21:12-22

12 Bring her into your home, where she must shave her head and cut her nails
13 and change the clothes she was wearing when you captured her. After she has lived in your house and cried for her parents for a month, you may marry her. You will be her husband, and she will be your wife.
14 But if you are not pleased with her, you must let her go anywhere she wants. You must not sell her for money or make her a slave, because you have taken away her honor.
15 A man might have two wives, one he loves and one he doesn't. Both wives might have sons by him. If the older son belongs to the wife he does not love,
16 when that man wills his property to his sons he must not give the son of the wife he loves what belongs to the older son, the son of the wife he does not love.
17 He must agree to give the older son two shares of everything he owns, even though the older son is from the wife he does not love. That son was the first to prove his father could have children, so he has the rights that belong to the older son.
18 If someone has a son who is stubborn, who turns against his father and mother and doesn't obey them or listen when they correct him,
19 his parents must take him to the older leaders at the city gate.
20 They will say to the leaders, "Our son is stubborn and turns against us. He will not obey us. He eats too much, and he is always drunk."
21 Then all the men in his town must throw stones at him until he dies. Get rid of the evil among you, because then all the people of Israel will hear about this and be afraid.
22 If someone is guilty of a sin worthy of death, he must be put to death and his body displayed on a tree.
Scripture taken from the New Century Version. Copyright © 1987, 1988, 1991 by Thomas Nelson, Inc. Used by permission. All rights reserved.