Deuteronomy 21:9

9 By following these procedures you will have absolved yourselves of any part in the murder because you will have done what is right in God's sight.

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 and say, "We didn't kill this man and we didn't see who did it.
8 Purify your people Israel whom you redeemed, O God. Clear your people Israel from any guilt in this murder."
9 By following these procedures you will have absolved yourselves of any part in the murder because you will have done what is right in God's sight.
10 When you go to war against your enemies and God, your God, gives you victory and you take prisoners,
11 and then you notice among the prisoners of war a good-looking woman whom you find attractive and would like to marry,
Published by permission. Originally published by NavPress in English as THE MESSAGE: The Bible in Contemporary Language copyright 2002 by Eugene Peterson. All rights reserved.