Then I saw an angel coming down from heaven, having the key to the bottomless pit and a great chain in his hand.
He laid hold of the dragon, that serpent of old, who is the Devil and Satan, and bound him for a thousand years;
and he cast him into the bottomless pit, and shut him up, and set a seal on him, so that he should deceive the nations no more till the thousand years were finished. But after these things he must be released for a little while.
And I saw thrones, and they sat on them, and judgment was committed to them. Then I saw the souls of those who had been beheaded for their witness to Jesus and for the word of God, who had not worshiped the beast or his image, and had not received his mark on their foreheads or on their hands. And they lived and reigned with Christ for a thousand years.
References for Revelation 20:4
But the rest of the dead did not live again until the thousand years were finished. This is the first resurrection.
Blessed and holy is he who has part in the first resurrection. Over such the second death has no power, but they shall be priests of God and of Christ, and shall reign with Him a thousand years.
Now when the thousand years have expired, Satan will be released from his prison
and will go out to deceive the nations which are in the four corners of the earth, Gog and Magog, to gather them together to battle, whose number is as the sand of the sea.
They went up on the breadth of the earth and surrounded the camp of the saints and the beloved city. And fire came down from God out of heaven and devoured them.
The devil, who deceived them, was cast into the lake of fire and brimstone where the beast and the false prophet are. And they will be tormented day and night forever and ever.
References for Revelation 20:10
Then I saw a great white throne and Him who sat on it, from whose face the earth and the heaven fled away. And there was found no place for them.
And I saw the dead, small and great, standing before God, and books were opened. And another book was opened, which is the Book of Life. And the dead were judged according to their works, by the things which were written in the books.
References for Revelation 20:12
The sea gave up the dead who were in it, and Death and Hades delivered up the dead who were in them. And they were judged, each one according to his works.
Then Death and Hades were cast into the lake of fire. This is the second death.
References for Revelation 20:14
And anyone not found written in the Book of Life was cast into the lake of fire.