Deuteronomy 21:9

9 So you will get rid of the guilt of killing someone who didn't do anything wrong. That's because you have done what is right in the LORD's eyes.

Deuteronomy 21:9 Meaning and Commentary

Deuteronomy 21:9

So shalt thou put away the guilt of innocent blood from among
you
Which otherwise, the person not being found out, and brought to just punishment for it, would devolve upon the whole. Aben Ezra interprets it the punishment of innocent blood, which, by the above method being taken, would not be inflicted on them:

when thou shalt do that which is right in the sight of the Lord;
as it was to observe this law concerning the beheading of the heifer, with all the rites and ceremonies belonging to it here enjoined; as well as every other command, statute, and ordinance of the Lord, which are all right to be done, ( Psalms 19:8 ) .

Deuteronomy 21:9 In-Context

7 They'll say to the Lord, "We didn't kill that person. We didn't see it happen.
8 Accept this payment for the sin of your people Israel. Lord, you have set your people free. Don't hold them guilty for spilling the blood of someone who hasn't done anything wrong." That will pay for the death of that person.
9 So you will get rid of the guilt of killing someone who didn't do anything wrong. That's because you have done what is right in the LORD's eyes.
10 Suppose you go to war against your enemies. And the LORD your God hands them over to you and you take them as prisoners.
11 Then you notice a beautiful woman among them. If you like her, you can get married to her.
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.