Revelation 20:4-6 NIV

4 I saw thrones1 on which were seated those who had been given authority to judge.2 And I saw the souls of those who had been beheaded3 because of their testimony for Jesus4 and because of the word of God.5 They had not worshiped the beast6 or his image and had not received his mark on their foreheads or their hands.7 They came to life and reigned8 with Christ a thousand years.

References for Revelation 20:4

5 (The rest of the dead did not come to life until the thousand years were ended.) This is the first resurrection.9

References for Revelation 20:5

6 Blessed10 and holy are those who have part in the first resurrection. The second death11 has no power over them, but they will be priests12 of God and of Christ and will reign with him13 for a thousand years.

References for Revelation 20:6