Although all men will be resurrected before the final Judgment Day of the Lord, some will be raised from the grave unto immortal life sooner than will others.
The late Elder James E. Talmage says of the Resurrection:
"Two general resurrections are mentioned in the scriptures, and these may be specified as first and final, or as the resurrection of the just and the resurrection of the unjust. The first was inaugurated by the resurrection of Jesus Christ; immediately following which many of the saints came forth from their graves. A continuation of this, the resurrection of the just, has been in operation since, and will be greatly extended, or brought to pass in a general way, in connection with the coming of Christ in His glory. The final resurrection will be deferred until the end of the thousand years of peace, and will be in connection with the last judgment.
We refer the reader to the following Book of Mormon scripture:
And I said unto them that our father also saw that the justice of God did also divide the wicked from the righteous; and the brightness thereof was like unto the brightness of a flaming fire, which ascendeth up unto God forever and ever, and hath no end.
And they said unto me: Doth this thing mean the torment of the body in the days of probation, or doth it mean the final state of the soul after the death of the temporal body, or doth it speak of the things which are temporal?
And it came to pass that I said unto them that it was a representation of things both temporal and spiritual; for the day should come that they must be judged of their works, yea, even the works which were done by the temporal body in their days of probation.
Wherefore, if they should die in their wickedness they must be cast off also, as to the things which are spiritual, which are pertaining to righteousness; wherefore, they must be brought to stand before God, to be judged of their works; and if their works have been filthiness they must needs be filthy; and if they be filthy it must needs be that they cannot dwell in the kingdom of God; if so, the kingdom of God must be filthy also.
But behold, I say unto you, the kingdom of God is not filthy, and there cannot any unclean thing enter into the kingdom of God; wherefore there must needs be a place of filthiness prepared for that which is filthy.
And there is a place prepared, yea, even that awful hell of which I have spoken, and the devil is the foundation of it; wherefore the final state of the souls of men is to dwell in the kingdom of God, or to be cast out because of that justice of which I have spoken.
Wherefore, the wicked are rejected from the righteous, and also from that tree of life, whose fruit is most precious and most desirable above all other fruits; yea, and it is the greatest of all gifts of God. And thus I spake unto my brethren. Amen. (1 Ne. 15:30-36)
Now this is the state of the souls of the wicked, yea, in darkness, and a state of awful, fearful looking for the fiery indignation of the wrath of God upon them; thus they remain in this state, as well as the righteous in paradise, until the time of their resurrection.
Now, there are some that have understood that this state of happiness and this state of misery of the soul, before the resurrection, was a first resurrection. Yea, I admit it may be termed a resurrection, the raising of the spirit or the soul and their consignation to happiness or misery, according to the words which have been spoken.
And behold, again it hath been spoken, that there is a first resurrection, a resurrection of all those who have been, or who are, or who shall be, down to the resurrection of Christ from the dead.
Now, we do not suppose that this first resurrection, which is spoken of in this manner, can be the resurrection of the souls and their consignation to happiness or misery. Ye cannot suppose that this is what it meaneth.
Behold, I say unto you, Nay; but it meaneth the reuniting of the soul with the body, of those from the days of Adam down to the resurrection of Christ.
Now, whether the souls and the bodies of those of whom has been spoken shall all be reunited at once, the wicked as well as the righteous, I do not say; let it suffice, that I say that they all come forth; or in other words, their resurrection cometh to pass before the resurrection of those who die after the resurrection of Christ.
Now, my son, I do not say that their resurrection cometh at the resurrection of Christ; but behold, I give it as my opinion, that the souls and the bodies are reunited, of the righteous, at the resurrection of Christ, and his ascension into heaven.
But whether it be at his resurrection or after, I do not say; but this much I say, that there is a space between death and the resurrection of the body, and a state of the soul in happiness or in misery until the time which is appointed of God that the dead shall come forth, and be reunited, both soul and body, and be brought to stand before God, and be judged according to their works.
Yea, this bringeth about the restoration of those things of which has been spoken by the mouths of the prophets.
The soul shall be restored to the body, and the body to the soul; yea, and every limb and joint shall be restored to its body; yea, even a hair of the head shall not be lost; but all things shall be restored to their proper and perfect frame.
And now, my son, this is the restoration of which has been spoken by the mouths of the prophets-
And then shall the righteous shine forth in the kingdom of God.
But behold, an awful death cometh upon the wicked; for they die as to things pertaining to things of righteousness; for they are unclean, and no unclean thing can inherit the kingdom of God; but they are cast out, and consigned to partake of the fruits of their labors or their works, which have been evil; and they drinks the dregs of a bitter cup. (Alma 40:14-26)