The Messenger of Allah ﷺ said, "Allah Almighty folded up the earth for me," or he said, "My Lord folded up the earth for me, so I saw its eastern and western ends. The dominion of my nation will reach what was folded up for me of it. I have been granted the two treasures, the red and the white. I asked my Lord for my nation that He not destroy them with a sweeping famine, and that He not empower over them an enemy from outside themselves who would violate their sanctity.My Lord said to me, 'Muhammad, when I issue a decree, it cannot be turned back. I will not destroy them with a sweeping famine, and I will not empower over them an enemy from outside themselves who would violate their sanctity, even if those from all the regions of the earth were to gather against them,' or He said, 'from its regions, until they themselves destroy one another and take one another captive.'What I truly fear for my nation are the misguiding leaders. Once the sword is placed among my nation, it will not be lifted from them until the Day of Resurrection. The Hour will not arrive until tribes from my nation join the polytheists, and until tribes from my nation worship idols. There will be among my nation thirty liars, each one claiming to be a prophet, while I am the Seal of the Prophets, with no prophet after me. A group from my nation will continue to uphold the truth, unharmed by those who oppose them, until the command of Allah Almighty comes."
قال رسول الله ﷺ: إن الله تعالى زوى لي الأرض- أو قال: إن ربي زوى لي الأرض- فرأيت مشارقها ومغاربها، وإن ملك أمتي سيبلغ ما زوي لي منها، وأعطيت الكنزين الأحمر والأبيض، وإني سألت ربي لأمتي أن لا يهلكها بسنة بعامة، ولا يسلط عليهم عدوا من سوى أنفسهم فيستبيح بيضتهم، وإن ربي قال لي: يا محمد، إني إذا قضيت قضاء فإنه لا يرد، ولا أهلكهم بسنة بعامة، ولا أسلط عليهم عدوا من سوى أنفسهم فيستبيح بيضتهم، ولو اجتمع عليهم من بين أقطارها- أو قال بأقطارها- حتى يكون بعضهم يهلك بعضا، وحتى يكون بعضهم يسبي بعضا، وإنما أخاف على أمتي الأئمة المضلين، وإذا وضع السيف في أمتي لم يرفع عنها إلى يوم القيامة، ولا تقوم الساعة حتى تلحق قبائل من أمتي بالمشركين، وحتى تعبد قبائل من أمتي الأوثان، وإنه سيكون في أمتي كذابون ثلاثون كلهم يزعم أنه نبي، وأنا خاتم النبيين لا نبي بعدي، ولا تزال طائفة من أمتي على الحق لا يضرهم من خالفهم حتى يأتي أمر الله تعالى.
Abu Dawud (4252) and Ahmad (22395) both narrated it through the route of Sulayman bin Harb, who said, Hammad bin Zayd narrated to us, from Ayub, from Abu Qilaba, from Abu Asma, from Thawban, and he mentioned it. Ibn Hibban (7238) narrated it through the route of Qutayba bin Saeed, from Hammad, with the same wording.Ibn Majah (3952) narrated it, and Ibn Hibban (6714) graded it sahih, both through the route of Qatada, from Abu Qilaba, with similar wording, in full. Some parts of the hadith appear in Sahih Muslim (2889, 1920) as mentioned before, and I have repeated it here because of the important additions it contains.