Revelation 20:2-3

20:2 He seized the dragon – the ancient serpent, who is the devil and Satan – and tied him up for a thousand years. 20:3 The angel then threw him into the abyss and locked and sealed it so that he could not deceive the nations until the one thousand years were finished. (After these things he must be released for a brief period of time.)

Revelation 20:7-10

Satan’s Final Defeat

20:7 Now when the thousand years are finished, Satan will be released from his prison 20:8 and will go out to deceive the nations at the four corners of the earth, Gog and Magog, to bring them together for the battle. They are as numerous as the grains of sand in the sea. 20:9 They went up on the broad plain of the earth and encircled the camp of the saints and the beloved city, but fire came down from heaven and devoured them completely. 20:10 And the devil who deceived them was thrown into the lake of fire and sulfur, where the beast and the false prophet are too, and they will be tormented there day and night forever and ever.