Hadith 6754
Lady Aisha Siddiqa (may Allah be pleased with her) narrates: The Prophet Muhammad (peace and blessings be upon him) said: An army will come to attack the Kaaba. When they reach an open field, the people at the front and the back (of the army) will be swallowed up by the earth. Lady Aisha (may Allah be pleased with her) asked: O Messenger of Allah! Among them there will be some people who are not part of them and have nothing to do with them. The Prophet Muhammad (peace and blessings be upon him) said: All of them will be swallowed up, then they will be resurrected (on the Day of Judgment) according to their intentions.