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.