Even in the face of inevitable destruction and exile, a firm promise of future redemption emerges. The despair surrounding an impending conquest does not mark the end of the story. While there is broad agreement that the enemy will successfully capture the city, this harsh reality will not last forever [מצודת דוד, ביאור שטיינזלץ]. God guarantees a fundamental shift in the fate of the people, promising to bring them back from all the foreign lands where they were scattered.
The intense divine anger that led to the exile is heavily emphasized, highlighting the sheer force of the wrath behind their expulsion [ביאור שטיינזלץ]. However, while the driving out of the people was done in anger, the future process of gathering them back together will be carried out with mercy [רש״י].
The ultimate goal of this ingathering is to return the Israelites to their land so they can live in absolute safety. They will be restored to the complete peace and security they experienced in ancient times, long before the destruction ever took place [מצודת דוד].