Ezekiel 33:12-13

12 a“And you, son of man, say to byour people, cThe righteousness of the righteous shall not deliver him when he transgresses, dand as for the wickedness of the wicked, he shall not fall by it when he turns from his wickedness, eand the righteous shall not be able to live by his righteousness
Hebrew  by it
when he sins.
13Though I say to the righteous that he shall surely live, yet gif he trusts in his righteousness and does injustice, none of his righteous deeds shall be remembered, but in his injustice that he has done he shall die.

Ezekiel 33:18

18 hWhen the righteous turns from his righteousness and does injustice, he shall die for it.
Copyright information for ESV