And the redemption of the soul is through him that quickeneth all things, in whose bosom it is decreed that the poor and the meek of the earth shall inherit it.
Therefore, it must needs be sanctified from all unrighteousness, that it may be prepared for the celestial glory;
For after it hath filled the measure of its creation, it shall be crowned with glory, even with the presence of God the Father;
That bodies who are of the celestial kingdom may possess it forever and ever; for, for this intent was it made and created, and for this intent are they sanctified.
And they who are not sanctified through the law which I have given unto you, even the law of Christ, must inherit another kingdom, even that of a terrestrial kingdom, or that of a telestial kingdom.
For he who is not able to abide the law of a celestial kingdom cannot abide a celestial glory.
And he who cannot abide the law of a terrestrial kingdom cannot abide a terrestrial glory.
And he who cannot abide the law of a telestial kingdom cannot abide a telestial glory; therefore he is not meet for a kingdom of glory. Therefore he must abide a kingdom which is not a kingdom of glory.
And again, verily I say unto you, the earth abideth the law of a celestial kingdom, for it filleth the measure of its creation, and transgresseth not the law—
Wherefore, it shall be sanctified; yea, notwithstanding it shall die, it shall be quickened again, and shall abide the power by which it is quickened, and the righteous shall inherit it.
For notwithstanding they die, they also shall rise again, a spiritual body.
They who are of a celestial spirit shall receive the same body which was a natural body; even ye shall receive your bodies, and your glory shall be that glory by which your bodies are quickened.
Ye who are quickened by a portion of the celestial glory shall then receive of the same, even a fulness.
And they who are quickened by a portion of the terrestrial glory shall then receive of the same, even a fulness.
And also they who are quickened by a portion of the telestial glory shall then receive of the same, even a fulness.
And they who remain shall also be quickened; nevertheless, they shall return again to their own place, to enjoy that which they are willing to receive, because they were not willing to enjoy that which they might have received.
For what doth it profit a man if a gift is bestowed upon him, and he receive not the gift? Behold, he rejoices not in that which is given unto him, neither rejoices in him who is the giver of the gift.
And again, verily I say unto you, that which is governed by law is also preserved by law and perfected and sanctified by the same.
That which breaketh a law, and abideth not by law, but seeketh to become a law unto itself, and willeth to abide in sin, and altogether abideth in sin, cannot be sanctified by law, neither by mercy, justice, nor judgment. Therefore, they must remain filthy still.
Source: Doctrine and Covenants 88:17-35; The Book of Mormon: Another Testament of Jesus Christ