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-8
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.