When you go to war against your enemies and the Lord your God delivers them into your hands and you take captives, if you notice among the captives a beautiful woman and are attracted to her, you may take her as your wife. Bring her into your home and have her shave her head, trim her nails and put aside the clothes she was wearing when captured. After she has lived in your house and mourned her father and mother for a full month, then you may go to her and be her husband and she shall be your wife. If you are not pleased with her, let her go wherever she wishes. You must not sell her or treat her as a slave, since you have dishonored her. Deuteronomy 21:10-14
In that day war had women being captured in victory and taken as slaves or as wives. It is not today’s custom, but it was then. So God protected those women. He gave them time to mourn and if she did not like the situation (because to this point she had had no say in the matter) she should be set free. You may not appreciate the policy, but do recognize God’s caring for the helpless. God is working even now to protect you in your need. Thank God!