Deuteronomy 21:8-13 New English Translation (NET)

8. Do not blame your people Israel whom you redeemed, O Lord, and do not hold them accountable for the bloodshed of an innocent person.” Then atonement will be made for the bloodshed.

9. In this manner you will purge out the guilt of innocent blood from among you, for you must do what is right before the Lord.

10. When you go out to do battle with your enemies and the Lord your God allows you to prevail and you take prisoners,

11. if you should see among them an attractive woman whom you wish to take as a wife,

12. you may bring her back to your house. She must shave her head, trim her nails,

13. discard the clothing she was wearing when captured, and stay in your house, lamenting for her father and mother for a full month. After that you may have sexual relations with her and become her husband and she your wife.

Deuteronomy 21