Then I saw an angel come down from heaven with the key to the bottomless pit and a heavy chain in his hand.
He seized the dragon -- that old serpent, the Devil, Satan -- and bound him in chains for a thousand years.
The angel threw him into the bottomless pit, which he then shut and locked so Satan could not deceive the nations anymore until the thousand years were finished. Afterward he would be released again for a little while.
Then I saw thrones, and the people sitting on them had been given the authority to judge. And I saw the souls of those who had been beheaded for their testimony about Jesus, for proclaiming the word of God. And I saw the souls of those who had not worshiped the beast or his statue, nor accepted his mark on their forehead or their hands. They came to life again, and they reigned with Christ for a thousand years.
This is the first resurrection. (The rest of the dead did not come back to life until the thousand years had ended.)
Blessed and holy are those who share in the first resurrection. For them the second death holds no power, but they will be priests of God and of Christ and will reign with him a thousand years.
When the thousand years end, Satan will be let out of his prison.
He will go out to deceive the nations from every corner of the earth, which are called Gog and Magog. He will gather them together for battle -- a mighty host, as numberless as sand along the shore.
And I saw them as they went up on the broad plain of the earth and surrounded God's people and the beloved city. But fire from heaven came down on the attacking armies and consumed them.
Then the Devil, who betrayed them, was thrown into the lake of fire that burns with sulfur, joining the beast and the false prophet. There they will be tormented day and night forever and ever.
And I saw a great white throne, and I saw the one who was sitting on it. The earth and sky fled from his presence, but they found no place to hide.
I saw the dead, both great and small, standing before God's throne. And the books were opened, including the Book of Life. And the dead were judged according to the things written in the books, according to what they had done.
The sea gave up the dead in it, and death and the grave gave up the dead in them. They were all judged according to their deeds.
References for Revelation 20:13
And death and the grave were thrown into the lake of fire. This is the second death -- the lake of fire.
And anyone whose name was not found recorded in the Book of Life was thrown into the lake of fire.