Ezekiel 18:24

24 "But if a righteous person stops doing good and starts doing all the evil, disgusting things that evil people do, will he go on living? No! None of the good he did will be remembered. He will die because of his unfaithfulness and his sins.

Ezekiel 18:24 In-Context

22 All his sins will be forgiven, and he will live, because he did what is right.
23 Do you think I enjoy seeing evil people die?" asks the Sovereign Lord. "No, I would rather see them repent and live.
24 "But if a righteous person stops doing good and starts doing all the evil, disgusting things that evil people do, will he go on living? No! None of the good he did will be remembered. He will die because of his unfaithfulness and his sins.
25 "But you say, "What the Lord does isn't right.' Listen to me, you Israelites. Do you think my way of doing things isn't right? It is your way that isn't right.
26 When a righteous person stops doing good and starts doing evil and then dies, he dies because of the evil he has done.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.