Sahih al-Bukhari, Volume 3, Book 34, Hadith 329 (USC-MSA)

Narrated `Aisha: Allah's Messenger said, "An army will invade the Ka`ba and when the invaders reach Al-Baida', all the ground will sink and swallow the whole army." I said, "O Allah's Messenger! How will they sink into the ground while amongst them will be their markets (the people who worked in business and not invaders) and the people not belonging to them?" The Prophet replied, "all of those people will sink but they will be resurrected and judged according to their intentions."

حَدَّثَنَا مُحَمَّدُ بْنُ الصَّبَّاحِ، حَدَّثَنَا إِسْمَاعِيلُ بْنُ زَكَرِيَّاءَ، عَنْ مُحَمَّدِ بْنِ سُوقَةَ، عَنْ نَافِعِ بْنِ جُبَيْرِ بْنِ مُطْعِمٍ، قَالَ حَدَّثَتْنِي عَائِشَةُ ـ رضى الله عنها ـ قَالَتْ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ يَغْزُو جَيْشٌ الْكَعْبَةَ، فَإِذَا كَانُوا بِبَيْدَاءَ مِنَ الأَرْضِ يُخْسَفُ بِأَوَّلِهِمْ وَآخِرِهِمْ ‏"‏‏.‏ قَالَتْ قُلْتُ يَا رَسُولَ اللَّهِ كَيْفَ يُخْسَفُ بِأَوَّلِهِمْ وَآخِرِهِمْ، وَفِيهِمْ أَسْوَاقُهُمْ وَمَنْ لَيْسَ مِنْهُمْ‏.‏ قَالَ ‏"‏ يُخْسَفُ بِأَوَّلِهِمْ وَآخِرِهِمْ، ثُمَّ يُبْعَثُونَ عَلَى نِيَّاتِهِمْ ‏"‏‏.‏

sunnah.com