Deuteronomy 21:9 NIV

9 So you will purge1 from yourselves the guilt of shedding innocent blood, since you have done what is right in the eyes of the LORD.

References for Deuteronomy 21:9