Deuteronomy 21:9

9 Thus you will banish the shedding of innocent blood from among you, by doing what ADONAI sees as right.

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 are to speak up and say, 'This blood was not shed by our hands, nor have we seen who did it.
8 ADONAI, forgive your people Isra'el, whom you redeemed; do not allow innocent blood to be shed among your people Isra'el.' And they will be forgiven this bloodshed.
9 Thus you will banish the shedding of innocent blood from among you, by doing what ADONAI sees as right.
10 "When you go out to war against your enemies, and ADONAI your God hands them over to you, and you take prisoners,
11 and you see among the prisoners a woman who looks good to you, and you feel attracted to her and want her as your wife;
Complete Jewish Bible Copyright 1998 by David H. Stern. Published by Jewish New Testament Publications, Inc. All rights reserved. Used by permission.