There are two resurrections,
the first is heavenly:
"And they came to life and ruled as kings with the Christ for a thousand years.(The rest of the dead did not come to life until the thousand years were ended). This is the first resurrection, happy and holy is anyone having part in the first resurrection, over these the second death has no authority, but they will be priests of God and of the Christ and will rule as kings with him for a thousand years" Rv20:4 This is the "little flock" of 144,000
The second is the earthly resurrection of all who have died.
"Do not marvel at this because the hour is coming in which all those in the memorial tombs will hear his voice, those who did good things to a resurrection of life, and those who practiced vile things to a resurrection of judgment. Jo5:28