Mishkat al-Masabih

‘A'isha reported God’s messenger as saying, “An army will set out to attack the Ka'ba, but in an extensive desert the first and last of them will be swallowed up.” She asked how the first and last of them would be swallowed up when among them there would be markets and people who were not of their number, to which he replied, “The first and last of them will be swallowed up, then they will be resurrected in a state agreeing with their intentions.” Bukhari and Muslim.

وَعَنْ عَائِشَةَ قَالَتْ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «يَغْزُو جَيْشٌ الْكَعْبَةَ فَإِذَا كَانُوا بِبَيْدَاءَ مِنَ الْأَرْضِ يُخْسَفُ بِأَوَّلِهِمْ وَآخِرِهِمْ» . قُلْتُ: يَا رَسُولَ اللَّهِ وَكَيْفَ يُخْسَفُ بِأَوَّلِهِمْ وَآخِرِهِمْ وَفِيهِمْ أسواقُهم وَمن لَيْسَ مِنْهُم؟ قَالَ: «يخسف وَآخِرِهِمْ ثُمَّ يُبْعَثُونَ عَلَى نِيَّاتِهِمْ»