Revelation of John 20:3

3and threw him into athe pit, and shut it and bsealed it over him, so that che might not deceive the nations any longer, until the thousand years were ended. After that he must be released for a little while.

Revelation of John 20:7-9

The Defeat of Satan

7And when the thousand years are ended, dSatan will be released from his prison 8and will come out eto deceive the nations that are at the four corners of the earth, fGog and Magog, gto gather them for battle; their number is like the sand of the sea. 9And hthey marched up over the broad plain of the earth and surrounded ithe camp of the saints and jthe beloved city, but kfire came down from heaven
Some manuscripts  from God, out of heaven, or out of heaven from God
and consumed them,
Copyright information for ESV