The rest of the dead did not come to life until the thousand years were over. This is the first resurrection.
In context
3He threw him into the abyss, shut it, and sealed it over him, so that he could no longer deceive the nations until the thousand years were over. After that he must be released for a short time. 4Then I saw thrones, and those seated on them were given authority to judge. I also saw the souls of those who had been beheaded for their testimony about Jesus and for the word of God, and who had not worshiped the beast or its image, and had not received its mark on their foreheads or their hands. They came to life and reigned with Christ for a thousand years. 5The rest of the dead did not come to life until the thousand years were over. This is the first resurrection. 6Blessed and holy is the one who shares in the first resurrection. Over these the second death has no power, but they will be priests of God and of Christ, and will reign with him for a thousand years. 7And when the thousand years are over, Satan will be released from his prison,