Deuteronomy 21:8-9

21:8 Do not blame your people Israel whom you redeemed, O Lord, and do not hold them accountable for the bloodshed of an innocent person.” Then atonement will be made for the bloodshed. 21:9 In this manner you will purge out the guilt of innocent blood from among you, for you must do what is right before the Lord.