They shall forget their shame and all the treachery they have practiced against me, when they dwell securely in their land with none to make them afraid,
This is the conclusion of the whole matter going before, and has reference not only to the predictions concerning Gog and Magog, but to all the prophecies of this book concerning the captivity of the house of Israel, and then concerning their restoration and return out of their captivity. I.
Commenting on Ezekiel 39:23-29
After that they have borne their shame,.... And disgrace, among the nations where they are scattered; being captives, exiles, in distress and affliction, and under the manifest tokens of the divine wrath and vengeance: it may be rendered, "and they shall bear their shame" (m); that is, as Jarchi glosses it, "when I shall do good to them, and not render to them according to...
After that they have borne their shame--the punishment of their sin: after they have become sensible of their guilt, and ashamed of it (Eze 20:43; Eze 36:31).