The Messenger of Allah ﷺ said, "Allah 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 the Chapter on the Description of the Resurrection (2788:24), 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 informed me, and he mentioned it.Bukhari narrated it in the Chapter on Monotheism (7413) as a suspended narration, saying, Umar bin Hamza said, I heard Salim, I heard Ibn Umar, from the Prophet ﷺ, with this. He did not mention its wording, but instead referred to the hadith of Nafi from Ibn Umar (7412), whose wording is abridged.