Deuteronomy 21:9

New International Version - UK Bible (NIVUK)
and you will have purged from yourselves the guilt of shedding innocent blood, since you have done what is right in the eyes of the Lord.

Marrying a captive woman

Read Deuteronomy 21:9 in other translations