Revelation 20:5, 7
Revelation 20:5 NIV
(The rest of the dead did not come to life until the thousand years were ended.) This is the first resurrection.
Revelation 20:7 NIV
When the thousand years are over, Satan will be released from his prison
(The rest of the dead did not come to life until the thousand years were ended.) This is the first resurrection.
When the thousand years are over, Satan will be released from his prison