Hisgalus 20:3-9 OJB

3 And threw him into the Tehom (Abyss), and shut and sealed it over him that he could not deceive any more the Goyim until the elef shanim (thousand years) were completed. After these things it is necessary for him to be released a short time. [DANIEL 6:17]

4 And I saw kise'ot (thrones) and they sat on them and authority for mishpat (judgment) was given to them, and I saw the nefashot (souls) of the ones having been beheaded because of their edut (testimony) for Rebbe, Melech HaMoshiach and because of the dvar Hashem and for those who did not worship the Chayyah [Beast, Anti-Moshiach] nor its Atzav and did not receive the tav (mark) on the metsakh (forehead) and on their yad (hand), and they awakened to Chayyim (Life) and reigned with Moshiach for elef shanim (a thousand years). [DANIEL 7:9]

5 And the rest of the Mesim did not awaken to Chayyim (Life) until the elef shanim should be completed. This is the Techiyah HaRishonah (First Resurrection).

6 Me'ushar and Kadosh (Blessed and Holy) is the one having a part in the Techiyah HaRishonah. On these ones the Mavet HaSheyni (the Second Death) does not have shilton (authority, samchut), but they will be kohanim of Hashem and of Moshiach, and will reign with him for elef shanim.

7 And when the elef shanim are completed, Hasatan will be released from his beit hasohar (prison),

8 And will go forth to deceive the Goyim in the four corners of ha'aretz, that is, Gog and Magog, to assemble them for milkhamah (war); the mispar (number) of them is like the sand of the seashore. [YESHAYAH 11:12; YECHEZKEL 7:2; 38:2; 39:1; 38:9,15]

9 And they went up over the broad plain of the land and encircled the makhaneh (camp) of the Kadoshim and the Ir HaAhuvah (the beloved city) and Eish came down out of Shomayim and consumed them. [YECHEZKEL 38:9,16; TEHILLIM 87:2; YECHEZKEL 38:22; 39:6]