The Messenger of Allah ﷺ said, "An army will march to attack the Kaabah, and when they reach a desert plain, the earth will swallow up the first and the last of them."Aisha said, "I asked, 'Messenger of Allah, how can the first and the last of them be swallowed up when among them are their merchants and people who are not part of them?'"He replied, "The first and the last of them will be swallowed up, then they will be resurrected according to their intentions."In another version from her, she said, the Messenger of Allah ﷺ stirred restlessly in his sleep. We said, "Messenger of Allah, you did something in your sleep that you do not usually do."He answered, "How astonishing! Some people from my nation will set out for the Sacred House seeking a man from Quraysh who has taken refuge at the House. When they reach the desert plain, they will be swallowed up by the earth."We said, "Messenger of Allah, but the road brings together all kinds of people."He said, "Yes. Among them will be the one who joins them knowingly, the one compelled against his will, and the traveler passing through. They will all perish together, but they will be resurrected by different fates. Allah will resurrect them according to their intentions."
قال رسول الله ﷺ: يغزو جيش الكعبة فإذا كانوا ببيداء من الأرض، يخسف بأولهم وآخرهم، قالت: قلت: يا رسول الله كيف يخسف بأولهم وآخرهم، وفيهم أسواقهم، ومن ليس منهم؟ قال: يخسف بأولهم وآخرهم، ثم يبعثون على نياتهم. وفي لفظ عنها قالت: عبث رسول الله ﷺ في منامه، فقلنا: يا رسول الله صنعت شيئا في منامك لم تكن تفعله، فقال: العجب إن ناسا من أمتي يؤمون بالبيت برجل من قريش، قد لجأ بالبيت، حتى إذا كانوا بالبيداء خسف بهم، فقلنا: يا رسول الله، إن الطريق قد يجمع الناس، قال: نعم، فيهم المستبصر، والمجبور، وابن السبيل، يهلكون مهلكا واحدا، ويصدرون مصادر شتى، يبعثهم الله على نياتهم.
Bukhari narrated it in the Book of Sales (2118) via Nafi bin Jubayr bin Mutim, who said, Ayesha narrated it to me, and he mentioned it.The second wording, Muslim narrated it in the Book of Turmoil and the Signs of the Hour (2884) via Muhammad bin Ziyad, from Abdullah bin Zubayr, from Ayesha, and he mentioned it.