There are some who believe that Ezekiel 38 will be fulfilled in our lifetime because of the conflict in the Middle East. But since Gog and Magog are mentioned after the Millennium in Revelation 20, we need to place that battle where it belongs.
REVELATION 20: GOG AND MAGOG
7 And when the thousand years are expired, Satan shall be loosed out of his prison,
8 And shall go out to deceive the nations which are in the four quarters of the earth, Gog and Magog, to gather them together to battle: the number of whom is as the sand of the sea.
9 And they went up on the breadth of the earth, and compassed the camp of the saints about, and the beloved city: and fire came down from God out of heaven, and devoured them.
So now it is necessary to harmonize this with Ezekiel 38.
1. Israel is not at rest at present and does not dwell safely. But during the Millennium it will be at rest and dwelling safely: And thou shalt say, I will go up to the land of unwalled villages; I will go to them that are at rest, that dwell safely, all of them dwelling without walls, and having neither bars nor gates... Therefore, son of man, prophesy and say unto Gog, Thus saith the Lord GOD; In that day when my people of Israel dwelleth safely, shalt thou not know it? (Ezek 38:11,14)
2. God will be directly involved in defeated Gog and Magog and all the nations gathered against Israel. At present God is not directly involved with unbelieving Israel: And it shall come to pass at the same time when Gog shall come against the land of Israel, saith the Lord GOD, that my fury shall come up in my face. For in my jealousy and in the fire of my wrath have I spoken, Surely in that day there shall be a great shaking in the land of Israel... And I will plead against him with pestilence and with blood; and I will rain upon him, and upon his bands, and upon the many people that are with him, an overflowing rain, and great hailstones, fire, and brimstone. (Ezek 38:18,19,22) The fire of God's wrath is also mentioned in Revelation.
Satan is loosed out of prison at this time, but Satan is also finally cast into Hell (the Lake of Fire) after this battle. What is puzzling is that so many nations will be deceived at that time. Which tells us that we do not really have the full picture regarding the Millennium.