Who is Imam Mehdi, What is gog and magog and who is the dajjal?


Who is Imam Mehdi, What is gog and magog and who is the dajjal?
Can you explain the coming of prophet Isa alaihi salaam, imam mehdi, gog and magog and the dajjal?
Also what is the role of imam mehdi and prophet isa?


Assalaamu Alaikum,

The following are explainations from the ahadith about what you have asked:-

The Advent of Hazrat Mahdi

Mahdi in Arabic means “rightly guided.” Many such Mahdis(rightly-guided people) have come and will continue to come. But the Mahdi who is mentioned in the Ahaadith will make his appearance very close to Qiyamah as foretold by Rasulullah . He will be from the progeny of Hazrat Fatima . His name will be Muhammad and his father’s name will be Abdullah and his mother’s name Amina. He will resemble Rasulullah (SAS). He will be tall, have a bright and broad forehead, and he will have a long high-bridged nose. He will speak with a stutter. Sometimes, due to difficulty in speech, he would strike his thighs with his hands. His knowledge will be an inspiration from Allah. He will be a resident of Madinah. He will appear at the age of forty in Makkah. The Ulama of Syria and Iraq will pledge allegiance to him. He will remove the treasures buried under the Ka’bah and distribute them amongst the Muslims. He will first rule over the Arabs, and then the entire world will be under his rule. He will restore peace and justice to the entire world. All his actions will be in accordance to the Shariah of Rasulullàh. During his lifetime, Dajjaal will also appear and Isa (AS) will descend from heaven and alight on the eastern minarat of the Jaame Masjid of Damascus and perform his Salaat behind the Mahdi.

The Dajjaal

An-Nawaas Ibn Sam’aan (R.A.) related that, “One morning, the Messenger of Allah mentioned the Dajjaal; he lowered the Dajjaal in significance yet gave importance (in terms of the tribulations associated with him). From this, we thought that he was in the group that was among the date-trees. When we went to him, he knew that about us and said, ‘What is your affair?’ We said, ’0 Messenger of Allah, one morning you mentioned the Dajjaal, and you lowered him in significance and you gave importance (in terms of the tribulations associated with him). So we thought that he was in a group that (lives) among the date-trees.’ He said, ‘Other than the Dajjal do I fear more upon you. If he comes out while I am among you, I am his opponent on your behalf. If he comes out and I am not among you, then each person is his own defender. And Allah is my Khaleefah over each person who is a Muslim (i.e. Allah is their Guardian and Protector). Indeed he (i.e. the Dajjaal) is a young man with extremely curly hair; his eye floats, and I say he resembles ‘Abdul-’Uzza ibn Qatun. Whoever from you reaches him, then read upon him the beginning of Suratul-Kahf (Chapter of the Cave). He will emerge on a borderland between Sham and Iraq. He will spread corruption quickly on the right, and he will spread corruption quickly on the left. O slaves of Allah, be firm.’ We said, ’0 Messenger of Allah, and how long will he remain on earth.’ He said, ‘Forty days; one day (from those days) will be like a year; one day will be like a month; and one day will be like a Jumu’ah (i.e. a week). And the rest of his days will be like your days.’ We said, ‘O Messenger of Allah, regarding that day that is like a year – is it enough to perform the prayers of a single day?’ He said, ‘No, estimate for them (i.e. estimate the timing of prayer for normal days; then pray every few hours based on that estimation, so for every 24 hours, five prayers).’ We said, ’0 Messenger of Allah, how fast is he in (traveling through) the earth?’ He said, ‘Like rain behind which is wind. He will go to a people, invite them, and they will believe in him and answer him (i.e., answer his call by following him). Then he will order the sky and it will give rain, and the (crops of the) earth will grow. Their livestock will return at the end of the day with higher humps than they ever had, producing more milk than they ever previously gave, and having more meat on them than they ever had before. Then he will go to a people and invite them; they will reject his speech, and he will leave them. They will enter into a drought, having nothing of their wealth in their hands. The Dajjaal will pass by a barren land and say, ‘Bring out your treasures,’ and its treasures will follow him like groups of bees. Then he will call a man who is in his full youth, and he will strike him with a sword, and cut him into two pieces… Then he will call him (back) and he will come with a radiant face, laughing. While he will be in that state, Allah will send Al-Maseeh ibn Maryam, and he will descend at the white minaret, in Eastern Damascus. He will be in two garments (that are dyed in saffron or something similar), and his hands will be on the wings of two Angels. When he lowers his head, drops will fall from it. And when he raises it, pearls will flow down from it (i.e. sweat that is in appearance like pearls). No Kaafir (disbeliever) finds the smell of his breath without dying, and his breath ends where his gaze ends. He will seek the Dajjaal out until the door of Lud (a city near Jerusalem) and kill him. Then ‘Eesa ibn Maryam will go to a people who were protected from the Dajjaal, and he will wipe over their faces, telling them their stations in Paradise. While he is upon that state, Allah ill will inspire to ‘Eesa that, ‘I indeed released slaves of mine, slaves that none has the ability to fight. So gather my slaves and take them to the Mountain.’ Allah (then) sends Yajooj and Majooj and they are coming from all directions. The first of them will pass by lake At-Tabariyyah, drinking from it; the last of them will pass by, saying, ‘once this had water in it.’ Allah’s Prophet, ‘Eesa, and his companions are besieged until the head of an ox for one of them is better than 100 dinars is for one of you today. Allah’s Prophet, ‘Eesa, and his companions will supplicate to Allah, and He will send to them (i.e. to Yajooj and Majooj) An-Naghaf (worms that are in the noses of camels and sheep) in their necks, and then they fall down dead like the death of a single soul. Then Allah’s Prophet, ‘Eesa, and his companions descend to the earth; there they will not find a place the size of a hand span except that it is filled with their awful smell and decay. Allah’s Prophet, ‘Eesa, and his companions will supplicate to Allah, and He will send birds, who have necks like Bukht (camels with long necks). They will throw them (the decaying corpses) wherever Allah wills. Then Allah will send rain that neither house nor Wabar (literally, hair) will prevent. Allah will wash the earth, leaving it like a Zalafah (mirror, indicating that the entire earth will be washed dean). Then it will be said to the earth, ‘grow your fruits and bring back your blessings.’ At that time, a group will eat from a single pomegranate and find shade in its shell. And milk will be blessed, whereby a milk-giving camel will be enough for a large group of people; a milk-giving cow will be enough for a tribe of people; and a milk-giving sheep will be enough for a group of relatives. While they are upon that state, Allah will send a good wind, which will take them from underneath their armpits; it will take the soul of every believer and every Muslim. The most evil of people will remain, and they will engage in sexual intercourse out in the open as donkeys do: upon them the Hour will come to pass.” (Muslim) Ibn Hajar said, “He inserted the Hadeeth of one of the two (narrators) into the Hadeeth of the other from ‘Abdur-Rahmaan ibn Yazeed ibn Jaabir; it is with the same chain and text, with the following addition after, ‘This once had water in it’: ‘They then journeyed until they ended at the Al-Khamar Mountain, and it is the mountain of Jerusalem. They will say: We have killed those on the earth, come and let us kill who is in the sky. They will shoot their arrows toward the sky, and Allah will return to them their arrows dyed in blood.” And the following is in the narration of Ibn Hajar: “I have indeed sent down slaves of mine whom none will be able to fight.” (Related by Muslim, both the chain and the text, and he alone related it from Al-Bukhaaree) Imam Ahmad related it as well, but after the saying, “And Allah will throw them wherever He pleases,” is this addition: “And he will throw them in the Maihbal.” Ibn Hajar asked, “And where is the Maihbal?” He said, “The rising place of the sun.” (Abu Daawood and At-Tirmidhee related it as well).
Umaamah Al-Baahilee said, “The Messenger of Allah delivered a sermon to us, most of which was speech about the Dajjaal, whom he warned us about. From his sermon he said, ‘Since the time Allah created and spread the children of Adam (throughout the earth), there has never been a Fitnah that was as great as (will be) the Fitnah of the Dajjaal. Allah has not sent a Prophet except that he warned (his people) about the Dajjaal. I am the last of the Prophets, and you are the last of the nations – hence he will come out among you for sure. If he comes out while I am still in your midst, then I am the defender of every Muslim. If he comes out after me, then every person is his own defender. And Allah is my Khaieefah over every Muslim (i.e. their Guardian and Protector). He will indeed come out from the borderlands – between Sham and Iraq. He will quickly spread his corruption to the right and to the left. O slaves of Allah, O people, remain firm. I will describe a quality (of his) that no Prophet before me described him with. He will begin by saying, ‘I am a prophet,’ but there is no Prophet after me. Second, he will say, ‘I am your Lord,’ but you will not see your Lord until you die. He is one- eyed, and indeed, your Lord ‘Azza wa-Jall (to Him belongs Might and Majesty) is not one-eyed. Written between his eyes is Kaafir (disbeliever), which every believer will read, regardless of whether he is literate or illiterate. From his Fitnah, is that he will have a Paradise and Fire with him. His Fire is in fact Paradise, and his Paradise is in fact Fire. Whoever is tested by his fire, then let him seek help from Allah and recite the beginning of Suratui-Kahf (Chapter of the Cave) – it will become cold and peaceful for him, just as the fire was for Ibraaheem. From his Fitnah is that he will say to a Bedouin, ‘Suppose that I raised your mother and father (from their graves), will you bear witness that I am your lord?’ The Bedouin will say, ‘Yes.’ Two devils will then appear before him in the shape of his father and mother, and they will say, ‘O my son, follow him, for he is indeed your Lord.’ From his Fitnah is that he will gain control over a soul and kill it by cutting it open with a saw and then spreading it into two strips. He will say, ‘Look at my slave, for I will indeed raise him now, and then (after I raise him) he will claim that he has a Lord other than me.’ Then Allah will raise him and the Khabeeth (wicked-doer; i.e. the Dajjaal) will say, ‘Who is your Lord?’ He will say, ‘My Lord is Allah, and you are the enemy of Allah – the Dajjaal. By Allah, I never had a more clear perception of you (and your evil) than I do today.” (Ibn Maajah)
“From his Fitnah is that he will order the sky to give rain, and it will rain; and he will order the earth to give forth its crops, and it will give forth its crops. From his Fitnah is that he will pass by an area, and they (the people there) will disbelieve in him. Then all of their livestock will perish. And from his Fitnth is that he will pass by an area, where they (the people there) will believe in him. Then he will order the sky to give rain, and it will rain; he will order the earth to bring forth vegetation and it will give forth vegetation. Their livestock will return at the end of that day fatter and larger than ever before, with more meat than ever before, and with more milk than ever before. He will stamp his foot on every part of the earth, appearing there (in every place), except for Makkah and Al-Madeenah. Whichever one of their mountain-passes he goes to, an angel with an unsheathed sword will meet him. Then he will go beside a small red mountain where the salty part of the land ends. Next, Al-Madeenah will have three tremors, and all male and female hypocrites will go out to him; thus it will be purified of filth just as the bellows are purified from the filth of steel. That day is called the Day of Deliverance.” Umm Shareek, the daughter of Abu Al-’Askar said, “0 Messenger of Allah, where will the Arabs be during those days?” He said, “They will be few, and most of them will be in Jerusalem. Their Imam will be a righteous man. As their Imam will go forward and lead the people in prayer, ‘Eesa ibn Maryam will descend. That Imam will walk backwards so that ‘Eesa can move to the front and lead the Prayer. ‘Eesa will place his hand between his shoulders and say to him, ‘Move forward and pray, for it was indeed established for you (i.e. for you to be the Imam). Their Imam will lead them in prayer, and when he will finish, ‘Eesa will say, ‘Erect the gate.’ It will be opened, and behind it will be the Dajjaal and with him 70,000 Jews, each one of them having a sword adorned with a cover. When the Dajjaal will look at him, he will dissolve, just like salt dissolves in water. He will leave, trying to flee, and ‘Eesa will say, ‘Indeed one blow to deliver to you, which you will not escape from.’ ‘Eesa will catch up to him at the Eastern door, where he will kill him’. The Messenger of Allah (SAS) said, “His (i.e. ‘Eesa’s) days are for forty years. One year (from those years) is like half a year; one year is like a month; and one month is like a Jumu’ah (i.e. a week). And the last of his days are short. In the morning, one of you will be at the gate of Al-Madeenah, and he will not reach its other gate until the night.” It was said to him, “O Messenger of Allah, how should we pray in those short days?” He iil! said, “Estimate prayer in them (i.e. estimate the intervals between one prayer and the next for normal days, and then pray) as you do in these long days; then pray.”
The Messenger of Allah said, “‘Eesa ibn Maryam will be a fair judge and a just Imam in my nation; he will crush the cross and kill the pig. He will remove the Jizyah and leave the Sadaqah (charity; this is because wealth will be abundant at that time); and so goats and camels will not be sought after (by a charity-tax collector). Also, mutual hatred and rancor will be lifted (from the people). Poison will be removed from all that have poison in them, so that a baby will place his hand in the mouth of a snake, but it will not harm him. A child will drive away a lion, but it will not harm him, and a wolf will be among sheep as if it is their dog. The earth will be filled with peace just as a container is filled with water. And the word will be one (i.e. there will be unity): none shall be worshipped but Allah. Wars will be over with and the Quraish will take their rule (i.e. from those disbelievers who took it from them), and the earth will be like an ‘Aathoor (washbasin) of silver; its crops will grow as they did during the era of Adam. A group will gather over a bunch of grapes, and it will fill them, and a group will gather over a single pomegranate, and it will fill them. An ox will be worth such and such amount (i.e. a considerable amount), and a horse will be for a few dirhams.” It was said, “O Messenger of Allah, what will make horses so cheap?” He (SAS), said, “They will never thereafter be mounted for war.” It was said, “And what will make an ox expensive?” He said, “To plow the entire earth. But before the Dajjaal comes out, there will be three extremely difficult years, wherein people will be afflicted with severe hunger. (In the first year) Allah will order the sky to hold back one-third of its rain, and He will order the earth to hold back one-third of its crops. Then in the second year, He, will order the sky to hold back two-thirds of its rain, and He will order the earth to hold back two-thirds of its crops. And in the third year, He will order the sky to hold back all of its rain – so it will not even rain a single drop – and He will order the earth to hold back all of its crops, so it will not grow any vegetables. Also, every possessor of Dhulf (a name for the feet of camels, goats, and sheep) will perish, except for what Allah wills.” It was said, “What will keep people alive in that period?” The Prophet said, “At-Tahleel (to say: Laailaha illallaah – none has the right to be worshipped but Allah), At-Tasbeeh (to say: Subhaanallah – How perfect Allah is!), and At-Tahmeed (to say: Alhamdulillah – all praise is for Allah); that will flow upon them (or through them) like the flow of food.” (Ibn Maajah)

The descent of Eesa Die (AS)

“And there is none of the people of the Scripture (Jews and Christians), but must believe in him (‘Eesa, as only a Messenger of Allah and a human being), before his death”(Quran 4:159)
Regarding this verse, Abu Maalik said that it is referring to when ‘Eesa ibn Maryam will descend and that he is now alive with Allah. When he will descend, all will believe in him. Ibn Jareer related this.
Ibn Abee Haatim related that a man asked Al-Hasan about this Verse:

“And there is none of the people of the Scripture (Jews and Christians), but must believe in him (‘Eesa, as only a Messenger of Allah and a human being), before his death “(4:159)
Al-Hasan said, “Before the death of ‘Eesa Allah raised ‘Eesa to Him and He will send him (back) before the Day of Resurrection, in a situation wherein both the righteous one and the wicked one will believe in him.” Qataadah ibn Du’aamah, ‘Abdur-Rahmaan ibn Yazeed Ibn Aslam, and others have said the same, which is also established in Bukhaaree and Muslim from Abu Hurairah. The belief of the Muslims is that ‘Eesa is alive now in the heavens, and he was not, as the People of the Book claim, crucified; instead, Allah raised him to Him. Before the Day of Resurrection, ‘Eesa will descend from the sky; such is related in Mutawaatir Hadeeth narrations.

Abu Hurairah related that the Messenger of Allah said, “The Prophets are brothers ‘Alaat (from one father) but with different mothers. And their religion is one. I am the most entitled of people to ‘Eesa ibn Maryam because there was no Prophet between him and me. He will indeed descend, so when you see him, recognize him. He is a man of medium height, leaning to redness and whiteness (in complexion). Upon him will be two garments that have some yellow in them. It is as if water is dropping from his head, though no wetness will befall him. He will crush the cross, kill the pig, and remove the Jizyah. He will call the people to Islam, and during his era, Allah will destroy all nations (or religions) except for Islam. And Allah will destroy Al-Maseeh Ad-Dajjaal during his era. Then there will be safety on earth, to the degree that lions will graze with camels, leopards will graze with cows, and wolves will graze with sheep. Children will play with snakes (without being harmed). ‘Eesa will remain for forty years. Then he will die, and the Muslims will pray over him.” (Ahmad) Abu Daawood and Ibn Jareer related it through different chains. Ibn Jareer was the only one to mention this narration in the Tafseer of the aforementioned Verse, and his chain is good and strong.

Yajooj And Majooj (Gog And Magog)

After ‘Eesa ibn Maryam kills the Dajjaal, Yajooj and Majooj (Gog and Magog) will come out. And through the blessings of ‘Eesa’s supplications, Allah will then destroy them in a single night. Allah said:

“Until whenYa’jooj and Ma’jooj(Gog and Magog) are let loose(from their barrier), and they swoop down from every mound. And the true promise (Day of Resurrection) shall draw near (of fulfillment). Then (when mankind is resurrected from their graves), you shall see the eyes of the disbelievers fixedly stare in horror. (They will say): “Woe to us! We were indeed heedless of this; nay, but we were Zalimoon (polytheists and wrongdoers, etc.).(Quran 18: v85-99)

And Allah said regarding the story of Dhul-Qarnain:

“Then he followed (another way), until, when he reached between two mountains, he found, before (near) them (those two mountains), a people who scarcely understood a word. They said: “0 DhulQarnain! Verily! Ya’juj and Ma’juj (Gog and Magog) are doing great mischief in the land. Shall we then pay you a tribute in order that you might erect a barrier between us and them?” He said: “That (wealth, authority, and power) in which my Lord had established me is better (than your tribute). So help me with strength (of men). I will erect between you and them a barrier.” “Give me pieces (blocks) of iron,” then, when he had filled up the gap between the two mountain-cliffs, he said: “Blow,” till when he had made it (red as) fire, he said: “Bring me molten copper to pour over it.” So they (Ya’juj and Ma’juj (Gog and Magog)) were made powerless to scale it or dig through it. (Dhul-Qarnain) said: “This is a mercy from my Lord, but when the Promise of my Lord comes, He shall level it down to the ground. And the Promise of my Lord is ‘ever true.” And on that Day (i.e. the Day Ya’juj and Ma’juj (Gog and Magog) will come out), We shall leave them to surge like waves on one another, and the Trumpet will be blown, and We shall collect them all together.(Quran 18:85-99)

In the Tafseer of the incident of Dhul-Qarnain – that he built the barrier from iron and copper between two mountains – it is mentioned that Dhul-Qarnain said, “This is a mercy from my Lord – that through the barrier, this people who spread corruption on the earth are separated from the people.” “But when the Promise of my Lord comes”: this is referring to the time when the barrier will be destroyed and leveled down to the ground. “And the Promise of my Lord is ever true”: i.e., this matter must come to pass. And at that time, Allah “shall leave them to surge like waves on one another.” And then they will go forth among the people, traveling quickly through every mound. After that time, the trumpet will be blown. In another Verse, Allah said:

“Until, when Ya’jooj and Ma’jooj (Gog and Magog) are let loose (from their barrier), and they swoop down from every mound. And the true promise (Day of Resurrection) shall draw near (of fulfillment). Then (when mankind is resurrected from their graves), you shall see the eyes of the disbelievers fixedly stare in horror”(Quran 21: 96,97)

The Prophet Foretold Of An Imminent Evil For The Arabs

Zainab bint Jahsh said that the Messenger of Allah (SAS) slept beside her and then woke up red in the face, as he was saying, “None has the right to be worshiped but Allah. Woe for the Arabs from an evil that has drawn near. Today, the size of this was opened from the barrier of Yajooj and Majooj (Gog and Magog).” He then made a circle with two of his fingers… Zainab said, “O Messenger of Allah, will we be destroyed while there are the righteous ones among us?” He said, “Yes, if there is an increase in Al-Khabath (wicked deeds, sins, and hypocrisy).” (Bukhaaree and Muslim)

The Coming Out Of Yajooj And Majooj (Gog And Magog)

Abu Hurairah reported that the Messenger of Allah said, “Indeed Yajooj and Majooj are every day digging out of the barrier, and when they see the rays of the sun, the one that is over them says, ‘Return, and you shall dig tomorrow.’ When they return to it, it is as solid as it ever was. This will go on until their time arrives and Allah wills to send them to the people. Then they will dig until they see the rays of the sun. The one over them will say, ‘Go, and you will dig tomorrow Insha Allah (if Allah wills).’ Then they will return to it, but this time it I will be upon the same state as it was when they left it. They will dig through it, going out to the people. They will make dry, (places of) water. The people will fortify themselves in fortresses, and the people of Yajooj and Majooj (Gog and Magog) will shoot their arrows to the sky. Then Allah will send Naghafan (a kind of worm) at the back of their necks and will kill them with the Naghafan (i.e., with those worms).” The Messenger of Allah said, “By the One Who has the soul of Muhammad in His Hand, the beasts of the earth will go fat and will find sufficient nourishment from their flesh and blood.” (Ahmad) Ahmad, At-Tirmidhee, and ibn Maajah related the same Hadeeth through different chains. Ibn Jareer and Ibn Abee Haatirn related a similar narration from Ka’ab Al Ahbaar. And Allah knows best.
Abu Sa’eed Al-Khudree related that he heard the Messenger of Allah say, “An opening will be made for Yajooj and Majooj, (Gog and Magog) and they will come out just as Allah says: “Traveling through every mound”. The people will move, frightened and startled, betaking themselves away from them to their cities and tresses. And they will bring their livestock along with them. The people of Yajooj and Majooj (Gog and Magog) will wander and drink the water of the earth. One of them will pass by a river and say, ‘There used to be a time when there was water here.’ When every single person will have sought refuge in a city or fortress, one from Yajooj and Majooj will say, ‘These are the inhabitants of the earth, and we have finished with them. There remains the inhabitants of the sky.’ One of them will rock his spear and launch it toward the sky. It will return to them, dyed in blood, as a trial and test. While they are upon that state, Allah will send a disease in their necks, like Naghaf (a kind of worm) of A1-Jaraad, which go into their necks. They will all die, and not a sound will be heard from them. The Muslims will say, ‘Would that a man sells his soul (for Paradise) and goes to see what the enemy has done.’ A man from them takes the task upon himself, seeking reward for his soul (i.e. for dying); he thinks that he will indeed die. He will descend, finding them all to be dead, heaped on top of one another. He will call out, “0 group of Muslims, Lo! Rejoice! Indeed Allah has saved you from your enemies. They will come out from their cities and fortresses, and they will send their livestock to graze, but they will find no pasture except for their meat (i.e. the meat of Yajooj and Majooj – meaning that their corpses will be covering every space of land). Their livestock will find nourishment from them, just as they found nourishment from the best plants they reaped.” (Ahmad) Ibn Maajah related it from Younus Ibn Bukair from Muhammad Ibn Ishaaq in a chain that is good.

Ibn Harmalah related that his Khaala (aunt from the mother’s side) said, “The Messenger of Allah gave a sermon and he had his finger bandaged from the bite of a scorpion. He said, “Indeed you see that you have no enemy. But you will continue to fight an enemy until Yajooj and Majooj (Gog and Magog) come out; they have wide faces, small eyes, and Suhb (blondness or redness in their hair). They will come quickly from every mound, and their faces are like shields.” (Ahmad) Yajooj and Majooj (Gog and Magog) are two groups from the Turks (i.e., from the race of the Tatars), from the progeny of Adam, and this is established in As-Saaheeh, in the following narration: Allah will say on the Day of Resurrection: “0 Adam.” He will say, “Labbaik Wa Sa’daik (here I am, hoping to please you time after time).” He will call out with a voice, “Bring out the people of the Hellfire …… He will say, “How many?” Allah will say, “From every 1000, 999 (people) to the Fire and one to Paradise.” “On that day, the young one will become gray-headed and every pregnant one will drop her load. And it will be said, “In Yajooj and Majooj you have a sacrifice (i.e., though 999 out of 1000 is a high percentage, it must be remembered that the people of Yajooj and Majooj represent a high percentage of the children of Adam).” And in another narration, it will be said, “Among you are two nations that were not in anything except that they increased it: Yajooj and Majooj.”
According to a narration it stated that Yajooj and Majooj are from the progeny of
“Noah, from the descendents of Yaafith, who is the father of the Turks (i.e., the race of the Tatars). They used to live on earth and they would cause great harm. Dhul-Qarnain besieged them in their place, with the barrier. There they will remain until Allah brings them out upon the people.

And Allah knows best,

Darul Ifta.