Revelation 20:1-10
Then I saw an angel coming down from heaven, holding in his hand the key of the bottomless pit and a great chain. And he seized the dragon, that ancient serpent, who is the Devil and Satan, and bound him for a thousand years, and threw him into the pit, and shut it and sealed it over him, that he should deceive the nations no more, till the thousand years were ended. After that he must be loosed for a little while.
Then I saw thrones, and seated on them were those to whom judgment was committed. Also I saw the souls of those who had been beheaded for their testimony to Jesus and for the word of God, and who had not worshiped the beast or its image and had not received its mark on their foreheads or their hands. They came to life, and reigned with Christ a thousand years. The rest of the dead did not come to life until the thousand years were ended. This is the first resurrection.
Blessed and holy is he who shares in the first resurrection! Over such the second death has no power, but they shall be priests of God and of Christ, and they shall reign with him a thousand years. And when the thousand years are ended, Satan will be loosed from his prison and will come out to deceive the nations which are at the four corners of the earth, that is, Gog and Magog, to gather them for battle; their number is like the sand of the sea.
And they marched up over the broad earth and surrounded the camp of the saints and the beloved city; but fire came down from heaven and consumed them, and the devil who had deceived them was thrown into the lake of fire and sulphur where the beast and the false prophet were, and they will be tormented day and night for ever and ever.