Deuteronomy 21:10-14

Fair Treatment of Captured Women

10 "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
11 if you see a beautiful woman among the captives, desire her, and want to take her as your wife,
12 you are to bring her into your house. She must shave her head, trim her nails,
13 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.
14 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,a because you have humiliated her.