22 None of the offenses they have committed will be remembered against them. Because of the righteous things they have done, they will live.

Read Ezekiel 18:22 Using Other Translations

All his transgressions that he hath committed, they shall not be mentioned unto him: in his righteousness that he hath done he shall live.
None of the transgressions that he has committed shall be remembered against him; for the righteousness that he has done he shall live.
All their past sins will be forgotten, and they will live because of the righteous things they have done.