The Messenger of Allah ﷺ said, "People will not cease attacking this House until an army marches against it. When they reach a desert plain, the earth will swallow them up from first to last, and not even those in the middle will escape."I asked, "What about those among them who were unwilling?"He replied, "Allah will resurrect them according to their intentions."
حدثنا أبو بكر بن أبي شيبة حدثنا الفضل بن دكين حدثنا سفيان عن سلمة بن كهيل عن أبي إدريس المرهبي عن مسلم بن صفوان
قال رسول الله ﷺ لا ينتهي الناس عن غزو هذا البيت حتى يغزو جيش حتى إذا كانوا بالبيداء أو بيداء من الأرض خسف بأولهم وآخرهم ولم ينج أوسطهم قلت فإن كان فيهم من يكره قال يبعثهم الله على ما في أنفسهم
Sourcing, sahih. Tirmidhi reported it in Fitan, chapter on what has been said about the earth swallowing people up, no. 2184, from the hadith of Abu Naeem Fadl bin Dukayn, through this route, and he said, hasan sahih. The preceding hadith serves as a corroborating witness for it.