Fiqh-us-Sunnah Volume 5, Hajj and ‘Umrah, Fiqh 5.132B.

Section : Invasion of Ka’bah.

Bukhari and Muslim reported from ‘Aishah that the Prophet (peace be upon him) said, “An army will attack the Ka’bah. When they reach a desert they will all be caused to be swallowed up by the earth, to the last man.” ‘Aishah asked, “O Messenger of Allah, how is that, because among them there may be some pious and good people and others who are not with them?” The Prophet (peace be upon him) said. “They will all be swallowed up by the earth, but then they will be restored to life (on the Judgment Day) according to their intentions.”