“Truly, truly, I say to you, an hour is coming and now is, when the dead shall hear the voice of the Son of God; and those who hear shall live. 26 “For just as the Father has life in Himself, even so He gave to the Son also to have life in Himself; 27 and He gave Him authority to execute judgment, because He is the Son of Man. 28 “Do not marvel at this; for an hour is coming, in which all who are in the tombs shall hear His voice, 29 and shall come forth; those who did the good deeds to a resurrection of life, those who committed the evil deeds to a resurrection of judgment. NASB
In the context of this passage Jesus is teaching people how to have everlasting life—by hearing His word and believing in Him (v. 24). And then He suggests to them (and to us) that He will one day come and command all who are dead to rise up out of their graves; for He said in verses 28-29, “Do not marvel at this; for an hour is coming, in which all who are in the tombs shall hear His voice, 29 and shall come forth; those who did the good deeds to a resurrection of life, those who committed the evil deeds to a resurrection of judgment.”
Thus this passage teaches primarily that all will be resurrected: some to eternal life and some to eternal judgment. I have counted five different resurrections in all.
The Four Resurrections of the Redeemed to Eternal Life
1. The resurrections of the church just before the rapture (1 Thess. 4:16).
2. The resurrections of the Old Testament believers at the second coming (Matt. 24:31; Lu. 14:14).
3. The resurrections of the martyred tribulation saints at the second coming (Rev. 20:4).
4. The resurrections of all millennial believers after the millennium (implied, Rev. 21:1).
The Single Resurrection of the Unredeemed to Eternal Judgment
5. The resurrection of all the unsaved throughout history that will then be judged at the Great White Throne Judgement (Rev. 20:12-13).