Ezekiel 18:24

But if a just man turns himself away from his justice, and does iniquity in accord with all the abominations that the impious man so often does, why should he live? All his justices, which he has accomplished, shall not be remembered. By the transgression, in which he has transgressed, and by his sin, in which he has sinned, by these he shall die

Other versions

King James Version

But when the righteous turneth away from his righteousness, and committeth iniquity, and doeth according to all the abominations that the wicked man doeth, shall he live? All his righteousness that he hath done shall not be mentioned: in his trespass that he hath trespassed, and in his sin that he hath sinned, in them shall he die.

English Standard Version

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.

New International Version

"But if a righteous man turns from his righteousness and commits sin and does the same detestable things the wicked man does, will he live? None of the righteous things he has done will be remembered. Because of the unfaithfulness he is guilty of and because of the sins he has committed, he will die.