Happy and greatly blessed are those who are included in this first raising of the dead. The second death has no power over them; they shall be priests of God and of Christ, and they will rule with him for a thousand years.
After the thousand years are over, Satan will be set loose from his prison,
and he will go out to deceive the nations scattered over the whole world, that is, Gog and Magog. Satan will bring them all together for battle, as many as the grains of sand on the seashore. 1
References for Revelation 20:8
20.8 a Ez 7.2; b Ez 38.2, 9, 15.
They spread out over the earth and surrounded the camp of God's people and the city that he loves. But fire came down from heaven and destroyed them.
Then the Devil, who deceived them, was thrown into the lake of fire and sulfur, where the beast and the false prophet had already been thrown; and they will be tormented day and night forever and ever.
Then I saw a great white throne and the one who sits on it. Earth and heaven fled from his presence and were seen no more. 2
References for Revelation 20:11
20.11, 12 Dn 7.9, 10.
And I saw the dead, great and small alike, standing before the throne. Books were opened, and then another book was opened, the book of the living. The dead were judged according to what they had done, as recorded in the books. 3
References for Revelation 20:12
+220.12 2 Esd 6.20.
Then the sea gave up its dead. Death and the world of the dead also gave up the dead they held. And all were judged according to what they had done.
Then death and the world of the dead were thrown into the lake of fire. (This lake of fire is the second death.)
Those who did not have their name written in the book of the living were thrown into the lake of fire.