27 But if a wicked person turns away from the wickedness they have committed and does what is just and right, they will save their life.

Read Ezekiel 18:27 Using Other Translations

Again, when the wicked man turneth away from his wickedness that he hath committed, and doeth that which is lawful and right, he shall save his soul alive.
Again, when a wicked person turns away from the wickedness he has committed and does what is just and right, he shall save his life.
And if wicked people turn from their wickedness, obey the law, and do what is just and right, they will save their lives.