Revelation 20:6-12 AMP

6 Blessed (happy, to be envied) and holy (spiritually whole, of unimpaired innocence and proved virtue) is the person who takes part (shares) in the first resurrection! Over them the second death exerts no power or authority, but they shall be ministers of God and of Christ (the Messiah), and they shall rule along with Him a thousand years.

7 And when the thousand years are completed, Satan will be released from his place of confinement,

8 And he will go forth to deceive and seduce and lead astray the nations which are in the four quarters of the earth–Gog and Magog–to muster them for war; their number is like the sand of the sea. [Ezek. 38:2, 9, 15, 22.]

9 And they swarmed up over the broad plain of the earth and encircled the fortress (camp) of God's people (the saints) and the beloved city; but fire descended from heaven and consumed them. [II Kings 1:10-12; Ezek. 38:2, 22.]

10 Then the devil who had led them astray [deceiving and seducing them] was hurled into the fiery lake of burning brimstone, where the beast and false prophet were; and they will be tormented day and night forever and ever (through the ages of the ages).

11 Then I saw a great white throne and the One Who was seated upon it, from Whose presence and from the sight of Whose face earth and sky fled away, and no place was found for them.

12 I [also] saw the dead, great and small; they stood before the throne, and books were opened. Then another book was opened, which is [the Book] of Life. And the dead were judged (sentenced) by what they had done [their whole way of feeling and acting, their aims and endeavors] in accordance with what was recorded in the books.