Revelation 20:7-8
Revelation 20:7-8 AMP
And when the thousand years are completed, Satan will be released from his prison (the abyss), and will come out to deceive and mislead the nations which are in the four corners of the earth—[including] Gog and Magog—to gather them together for the war; their number is like the sand of the seashore. [Ezek 38:2; 39:1, 6]