One battle in Ezekiel 38 - the Gog/Magog event.
Two battles in Ezekiel 39.
Ezekiel 39:1-16 - the Gog/Magog event.
7 years later.....
Ezekiel 39:17-20 - the Armageddon event.
Ezekiel 39:21-29 - Jesus Himself speaking in the text having returned to this earth.
Ezekiel 38:15 And thou shalt come from thy place out of the north parts, thou, and many people with thee, all of them riding upon horses, a great company, and a mighty army:
16 And thou shalt come up against my people of Israel, as a cloud to cover the land; it shall be in the latter days, and I will bring thee against my land, that the heathen may know me, when I shall be sanctified(qadash) in thee, O Gog, before their eyes.
Ezekiel 38:22 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.
23 Thus will I magnify myself, and sanctify(qadash) myself; and I will be known in the eyes of many nations, and they shall know that I am the LORD.
I don't think one person, hopefully including you, would disagree that the above involves Gog and his multitude.
Ezekiel 39:21 And I will set my glory among the heathen, and all the heathen shall see my judgment that I have executed, and my hand that I have laid upon them.
26 After that they have borne their shame, and all their trespasses whereby they have trespassed against me, when they dwelt safely in their land, and none made them afraid.
27 When I have brought them again from the people, and gathered them out of their enemies' lands, and am sanctified(qadash) in them in the sight of many nations;
28 Then shall they know that I am the LORD their God, which caused them to be led into captivity among the heathen: but I have gathered them unto their own land, and have left none of them any more there.
29 Neither will I hide my face any more from them: for I have poured out my spirit upon the house of Israel, saith the Lord GOD.
But when we get to these portions, now all of a sudden one is to no longer think any of this involves Gog and his multitude, that the judgment God executed in verse 21, it involves a later battle rather than a battle involving Gog and his multitude.
Which then means God was somewhat unsuccessful in regards to what is recorded in Ezekiel 38:23, where that leads to Him being known in the eyes of many nations, so He needed to do it yet again, via a later battle.
Therefore, Ezekiel 38:23 is not involving anything Ezekiel 39:27 is involving since Ezekiel 39:21 is not meaning a judgment involving Gog and his multitude, but is meaning a judgment involving a later battle.
Which Ezekiel 38-39 knows nothing of since it never even bothers mentioning who this alleged later battle might be involving.
Is that what we are to believe?
EDITED it since Douggg was complaining that it was hard to read like I initially had it.