Jezekiel 18:24

24 But when the righteous man turns away from his righteousness, and commits iniquity, according to all the transgressions which the transgressor has wrought, none of his righteousness which he has wrought shall be at all remembered: in his trespass wherein he has trespassed, and in his sins wherein he has sinned, in them shall he die.

Jezekiel 18:24 In-Context

22 None of his trespasses which he has committed shall be remembers: in his righteousness which he has done he shall live.
23 Shall I at all desire death of the sinner, saith the Lord, as I that he should turn from evil way, and live?
24 But when the righteous man turns away from his righteousness, and commits iniquity, according to all the transgressions which the transgressor has wrought, none of his righteousness which he has wrought shall be at all remembered: in his trespass wherein he has trespassed, and in his sins wherein he has sinned, in them shall he die.
25 Yet ye have said, The way of the Lord is not straight. Hear now, all the house of Israel; will not my way be straight? Is your way straight?
26 When the righteous turns away from his righteousness and commits a trespass, and dies in the trespass he has committed, he shall die in it.

The Brenton translation of the Septuagint is in the public domain.