ESV: When the righteous turns from his righteousness and does injustice, he shall die for it.
NIV: If a righteous person turns from their righteousness and does evil, they will die for it.
NASB: When the righteous turns from his righteousness and commits injustice, then he shall die in it.
CSB: When a righteous person turns from his righteousness and commits injustice, he will die for it.
NLT: For again I say, when righteous people turn away from their righteous behavior and turn to evil, they will die.
KJV: When the righteous turneth from his righteousness, and committeth iniquity, he shall even die thereby.
NKJV: When the righteous turns from his righteousness and commits iniquity, he shall die because of it.