This chapter once again contains both the promise of destruction of enemies of Israel and the promise of restoration for Israel itself. Gog and Magog are described as the classic enemies of the Lord who will be defeated unilaterally. But then you see a transition that takes place in vs. 25 where God speaks about restoring the fortunes of Israel.
Notice how all of the military arms are used to provide fire for the people of Israel who traditionally need to go and gather wood from the forests. No need to do that for the weapons will be converted to fire wood. It should sound a little bit like Isaiah 2:4 where we read: "They shall beat their swords into plowshares, and their spears into pruning hooks..."
If you were just to pick up this chapter in vs.28 you would get a summary of all that has happened from the time of the exile to the promise of the restoration. God sent them into exile among the nations and then he will gather them together again, no one will be left behind. Sounds like a theme within our own military that we have seen at one time. No one is left behind.