Yaʾjūj and Maʾjūj — held behind Dhul-Qarnayn's barrier until their appointed time near the end of the world.
The story
A corrupting force held back
When Dhul-Qarnayn reached the pass between two mountains, he found a people who begged him to build a barrier against Yaʾjūj and Maʾjūj, who were spreading corruption in the land. He built a wall of iron and molten copper that they could neither scale nor dig through. Ibn Kathīr explains that this barrier holds them to this day.
Dhul-Qarnayn said: this is a mercy from my Lord, but when my Lord's promise comes, He will level it — and His promise is ever true. The Qur'an says that on that day they will surge over one another like waves. Ibn Kathīr explains their release is among the major signs of the Hour.
Summaries of Ibn Kathīr's commentary on the linked āyāt, with authentic ḥadīth noted in the text where used. Verse links open Quran.com text and your chosen translation.