Deuteronomy 21:9

9 So you shall put away the guilt of innocent blood from among you when you do what is right in the sight of the Lord.

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 Then they shall answer and say, 'Our hands have not shed this blood, nor have our eyes seen it.
8 Provide atonement, O Lord, for Your people Israel, whom You have redeemed, and do not lay innocent blood to the charge of Your people Israel.' And atonement shall be provided on their behalf for the blood.
9 So you shall put away the guilt of innocent blood from among you when you do what is right in the sight of the Lord.
10 "When you go out to war against your enemies, and the Lord your God delivers them into your hand, and you take them captive,
11 and you see among the captives a beautiful woman, and desire her and would take her for your wife,
Scripture taken from the New King James Version. Copyright © 1982 by Thomas Nelson, Inc. Used by permission. All rights reserved.