Who does the word “them” in Revelation 20:9 refer to?
Revelation 20:7-10 NASB
Satan Freed, Doomed
7 "When the thousand years are completed, Satan will be released from
his prison, 8 and will come out to deceive the nations which are in
the four corners of the earth, Gog and Magog, to gather them together
for the war; the number of them is like the sand of the [a]seashore. 9
And they came up on the [b]broad plain of the earth and surrounded the
camp of the [c]saints and the beloved city, and fire came down from
heaven and devoured them. 10 And the devil who deceived them was
thrown into the lake of fire and [d]brimstone, where the beast and the
false prophet are also; and they will be tormented day and night
forever and ever."
Starting form verse seven after the Thousand year Reign of God's Kingdom, Satan will be released from his prison,and will be allowed to test the then perfect human race-"the nations," like Adam was before he sinned , the prophecy continues and says that many like the sands of the seashore will be lead astray.
This should not surprise us,that many perfect humans will be enticed to follow him, after-all he misled perfect Adam and many angels (2 Peter 2:4 and Jude 6). In verse eight, " He deceives the nations which are in the four corners of the earth, Gog and Magog, and will lead them for war-"those nations"- refers to the humankind that will alienate themselves from God's righteous rule and take the side of Satan, this does not necessarily mean that mankind will again be divided into nations, similar to today.
In verse nine, at the end of the thousand years , the rebels ( them ) that follow Satan, will surround the camp of the saints and the beloved city , with the aim to destroy God's righteous mankind and the beloved city .The rebels obviously feel strong enough to do it,to prevent such an attack, God intervenes and destroys them in the lake of fire, this means everlasting death.
Another attack on God's people is made by Gog of Magog in the Book of Ezekiel,chapter 38 and 39, 38:2, 10-12) and which is linked to the prophecy at Revelation 16:16 when Satan will gathered the kings of the earth (Gog of Magog) and their armies to the place that is called Armageddon in Hebrew. (NET)