The emergence of Gog and Magog is another great sign. Sūrat al-Kahf describes a barrier built by Dhū al-Qarnayn to restrain their destructive activity.
Near the Hour the barrier will open or collapse, and Gog and Magog will come out in great numbers, bringing widespread disorder. The building of the barrier and their final emergence are two distinct stages in the account of the same people.