The Book of Mormon

Alma 41:6

1830 Edition

And so it is on the other hand. If he hath repented of his sins, and desired righteousness until the end of his days, even so he shall be rewarded unto righteousness.

Simple English

It works the other way too. If someone has turned away from his sins and wanted to do right until the end of his days, then he will be rewarded with what is right.

Paraphrase

It works the other way too. If someone repented of their sins and pursued what was right until the end of their days, they’ll be rewarded with righteousness.