"When you go to war against your enemies and the Lord your God hands them over to you and you take some of them prisoner, and
if you see a beautiful woman among the captives, desire her, and want to take her as your wife,
you are to bring her into your house. She must shave her head, trim her nails,
remove the clothes she was wearing when she was taken prisoner, live in your house, and mourn for her father and mother a full month. After that, you may have sexual relations with her and be her husband, and she will be your wife.
Then if you are not satisfied with her, you are to let her go where she wants, but you must not sell her for money or treat her as merchandise, because you have humiliated her.