The Messenger of Allah ﷺ said, "Allah, the Mighty and Majestic, will fold up the heavens on the Day of Resurrection, then take them in His right hand and say, 'I am the King. Where are the tyrants? Where are the arrogant?' Then He will fold up the earths with His left hand and say, 'I am the King. Where are the tyrants? Where are the arrogant?'"
قال رسول الله ﷺ: يطوي الله عزوجل السماوات يوم القيامة، ثم يأخذهن بيده اليمنى، ثم يقول: أنا الملك أين الجبارون؟ أين المتكبرون؟ ثم يطوي الأرضين بشماله، ثم يقول: أنا الملك أين الجبارون؟ أين المتكبرون؟
Muslim narrated it in "Sifat al-Qiyama" (2788) from Abu Bakr bin Abu Shayba, who said, "Abu Usama narrated to us, from Umar bin Hamza, from Salim bin Abdullah, who said, Abdullah bin Umar reported to me," then he mentioned it.Bukhari narrated it in "Tawhid" (7412) through Nafi, from Ibn Umar, mentioning it briefly, then he said (7413), "Umar bin Hamza said, I heard Salim say, I heard Ibn Umar narrate," from the Prophet ﷺ with this wording.His saying, "Just as We began the first creation, We will repeat it" [Anbiya 21:104] means that Allah will bring creation back on the Day of Resurrection just as He created it the first time. This has come in the sahih collection.