Ezekiel 33:12–13
12 t“And you, son of man, say to lyour people, mThe righteousness of the righteous shall not deliver him when he transgresses, nand as for the wickedness of the wicked, he shall not fall by it when he turns from his wickedness, mand the righteous shall not be able to live by his righteousness1 when he sins. 13 Though I say to the righteous that he shall surely live, yet mif 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 18:26
26 lWhen a righteous person turns away from his righteousness and does injustice, he shall die for it; for the injustice that he has done he shall die.