Ezekiel 18:24

24 But when a righteous man turns away from his righteousness and commits iniquity and does the same abominable things that the wicked man does, shall he live? None of the righteous deeds which he has done shall be remembered; for the treachery of which he is guilty and the sin he has committed, he shall die.

Ezekiel 18:24 In-Context

22 None of the transgressions which he has committed shall be remembered against him; for the righteousness which he has done he shall live.
23 Have I any pleasure in the death of the wicked, says the Lord GOD, and not rather that he should turn from his way and live?
24 But when a righteous man turns away from his righteousness and commits iniquity and does the same abominable things that the wicked man does, shall he live? None of the righteous deeds which he has done shall be remembered; for the treachery of which he is guilty and the sin he has committed, 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 man turns away from his righteousness and commits iniquity, he shall die for it; for the iniquity which he has committed he shall die.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.