Deuteronomy 21:13-23

13 and no longer wear the clothes she was wearing when you captured her. Then she may live in your house and mourn [the loss of] her father and mother for one month. After that, you may sleep with her. Then you will become husband and wife.
14 But if it happens that you are no longer pleased with her, let her go wherever she wants. You must never sell her or mistreat her as if she were a slave, since you've already had sex with her.
15 A man might have two wives and love one but not the other. Both wives might have children, and the firstborn son might belong to the wife that the man doesn't love.
16 When the day comes for the father to give his sons their inheritance, he can't treat the son of the wife he loves as if that son were the firstborn. This would show a total disregard for the real firstborn (the son of the wife he doesn't love).
17 Instead, he must recognize the son of the wife he doesn't love as the firstborn. He must give that son a double portion of whatever he owns. That son is the very first son he had. The rights of the firstborn son are his.
18 Parents might have a stubborn and rebellious son who doesn't obey them. Even though they punish him, he still won't listen to them.
19 His father and mother must take him to the leaders of the city at the city gate.
20 They will say to the leaders of the city, "This son of ours is stubborn and rebellious. He won't obey us. He eats too much and is a drunk."
21 All the men of the city should stone him to death. You must get rid of this evil. When all Israel hears about it, they will be afraid.
22 When a convicted person is put to death,
23 never leave his dead body hung on a pole overnight. Be sure to bury him that same day, because anyone whose body is hung on a pole is cursed by God. The land that the LORD your God is giving you must never become unclean.
GOD'S WORD® is a copyrighted work of God's Word to the Nations. Copyright © 1995 by God's Word to the Nations. All rights reserved. Used by permission.