Ezekiel 18:24-26 English Standard Version (ESV)
24 But when a righteous person turns away from his righteousness and does injustice and does the same abominations that the wicked person does, shall he live? None of the righteous deeds that he has done shall be remembered; for the treachery of which he is guilty and the sin he has committed, for them he shall die.
25 “Yet you say, ‘The way of the Lord is not just.’ Hear now, O house of Israel: Is my way not just? Is it not your ways that are not just? 26 When a righteous person turns away from his righteousness and does injustice, he shall die for it; for the injustice that he has done he shall die.
Ezekiel 18:24-26 New International Version (NIV)
24 “But if a righteous person turns from their righteousness and commits sin and does the same detestable things the wicked person does, will they live? None of the righteous things that person has done will be remembered. Because of the unfaithfulness they are guilty of and because of the sins they have committed, they will die.
25 “Yet you say, ‘The way of the Lord is not just.’ Hear, you Israelites: Is my way unjust? Is it not your ways that are unjust? 26 If a righteous person turns from their righteousness and commits sin, they will die for it; because of the sin they have committed they will die.