The Messenger of Allah ﷺ said, "Yajuj and Majuj dig every day until they almost see the rays of the sun, then the one in charge of them says, 'Go back, you will dig it tomorrow.' So they return to it stronger than before. When their appointed time comes and Allah wills to send them forth against mankind, they will dig until they almost see the rays of the sun, then the one in charge of them will say, 'Go back, you will dig it tomorrow, if Allah wills,' adding the exception. They will return to it and find it as it was when they left it. They will then dig through it and emerge upon the people. They will drink up the waters, and the people will fortify themselves against them in their strongholds. They will shoot their arrows toward the sky, and the arrows will return to them appearing as though stained with blood. They will say, 'We have overpowered the people of the earth and overcome the people of the sky.' Then Allah will send a worm into the napes of their necks and kill them with it."The Messenger of Allah ﷺ said, "By the One in whose hand is my soul, the beasts of the earth will grow fat and thrive on their flesh and blood."
قال رسول الله ﷺ: إن يأجوج، ومأجوج يحفرون كل يوم، حتى إذا كادوا يرون شعاع الشمس، قال الذي عليهم: ارجعوا، فستحفرونه غدا، فيعودون إليه أشد ما كان، حتى إذا بلغت مدتهم، وأراد الله أن يبعثهم على الناس، حفروا، حتى إذا كادوا يرون شعاع الشمس قال الذي عليهم: ارجعوا، فستحفرونه غدا إن شاء الله تعالى، ويستثني، فيعودون إليه، وهو كهيئته حين تركوه، فيحفرونه، ويخرجون على الناس فينسفون المياه، ويتحصن الناس منهم في حصونهم، فيرمون بسهامهم إلى السماء، فترجع عليها كهيئة الدم، فيقولون: قهرنا أهل الأرض وعلونا أهل السماء، فيبعث الله نغفا في أقفائهم، فيقتلهم بها. قال رسول الله ﷺ: والذي نفسي بيده، إن دواب الأرض لتسمن، وتشكر شكرا من لحومهم ودمائهم.
Reported by Tirmidhi (3153), Ibn Majah (4080), and Ahmad (10632), and Ibn Hibban (6829) and Hakim (4/488) graded it sahih, all of them by way of Qatada, who said, Abu Rafi narrated to us, from Abu Hurairah, who related it.Tirmidhi said, "Hasan gharib."Hakim said, "Sahih according to the standard of the two Shaykhs."Its chain of transmission is sahih. Abu Rafi is Nufay the goldsmith, well known by his kunya. There are many hadiths concerning the matter of Yajuj and Majuj mentioned among the signs of the Hour.