25 And the first fruits of repentance is baptism; and baptism cometh by faith unto the fulfilling the commandments; and the fulfilling the commandments bringeth remission of sins;
26 And the remission of sins bringeth meekness, and lowliness of heart; and because of meekness and lowliness of heart cometh the visitation of the Holy Ghost, which Comforter filleth with hope and perfect love, which love endureth by diligence unto prayer, until the end shall come, when all the saints shall dwell with God.
This is one of my absolute favorite verses in the Book of Mormon. I love how baptism is described as a fruit of faith and repentance. That desire flows when we exercise faith and repent of our sins and transgressions. And with that desire, we are motivated to follow God. Therefore, we become humble and meek. Therefore, we are able to feel the Holy Ghost and to be filled with hope. And that hope and love can keep us motivated until the end.