Ezekiel 18:24

Amplified Bible (AMP)
“But when the righteous man turns away from his righteousness and commits sin and acts in accordance with all the repulsive things that the wicked man does, will he live? All of his righteous deeds which he has done will not be remembered because of the treachery that he has committed and for his sin which he has committed; for them he shall die.

Read Ezekiel 18:24 in other translations