Ezekiel 18:9

18:9 and follows my statutes and observes my regulations by carrying them out. That man is righteous; he will certainly live, declares the sovereign Lord.

Ezekiel 18:26

18:26 When a righteous person turns back from his righteousness and practices wrongdoing, he will die for it; because of the wrongdoing he has done, he will die.