[Machine] Indeed, the first thing that Allah created was the pen. He said, "Write!" The pen asked, "O Lord, what shall I write?" He replied, "Write down destiny." The pen then began writing everything that will happen from that day until the Day of Judgment. Then Allah created the Noon (a reference to Prophet Muhammad) and He spread the earth on top of it. The moisture in the air rose and the heavens were created from it. The Noon moved and the earth was stretched out then stabilized by the mountains. And indeed, the mountains will crumble upon the earth until the Day of Judgment.
إِنَّ أَوَّلَ مَا خَلَقَ اللهُ ﷻ مِنْ شَيْءٍ الْقَلَمُ فقَالَ اكْتُبْ قَالَ يَا رَبِّ وَمَا أَكْتُبُ؟ قَالَ اكْتُبِ الْقَدَرَ قَالَ فَجَرَى بِمَا هُوَ كَائِنٌ مِنْ ذَلِكَ الْيَوْمِ إِلَى قِيَامِ السَّاعَةِ قَالَ ثُمَّ خَلَقَ النُّونَ فَدَحَا الْأَرْضَ عَلَيْهَا فَارْتَفَعَ بُخَارُ الْمَاءِ فَفَتَقَ مِنْهُ السَّمَاوَاتِ وَاضْطَرَبَ النُّونُ فَمَادَتِ الْأَرْضُ فَأُثْبِتَتْ بِالْجِبَالِ وَإِنَّ الْجِبَالَ لَتُفَجَّرُ عَلَى الْأَرْضِ إِلَى يَوْمِ الْقِيَامَةِ