Revelation 20:5, 13
Revelation 20:5 ESV
The rest of the dead did not come to life until the thousand years were ended. This is the first resurrection.
Revelation 20:13 ESV
And the sea gave up the dead who were in it, Death and Hades gave up the dead who were in them, and they were judged, each one of them, according to what they had done.