Abdullah bin Umar reported,

I heard the Messenger of Allah ﷺ say, "The first thing Allah the Exalted created was the Pen. He took it in His right hand, and both of His hands are right hands."He continued, "Then He wrote down the world and all that would occur within it, whether deeds of righteousness or wickedness, whether moist or dry, and recorded it all with Him in the Reminder. Recite if you wish, 'This, Our record, speaks about you in truth. Indeed, We were having transcribed whatever you used to do' [Jathiyah 45:29]. And does a transcription come from anything other than something already completed?"

Azami 994

Hasan

عن ابن عمر، قال

سمعت رسول الله ﷺ يقول: أول ما خلق الله تعالى القلم فأخذه بيمينه وكلتا يديه يمين- قال: فكتب الدنيا وما يكون فيها من عمل معمول بر أو فجور، رطب أو يابس، فأحصاه عنده في الذكر، فقال: اقرأوا إن شئتم: {هذا كتبنا ينطق عليكم بالحق إنا كنا نستنسخ ما كنتم تعملون} [سورة الجاثية: ٢٩]، فهل تكون النسخة إلا من شيء قد فرغ منه.

الأعظمي 994حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
First thing Allah created was the pen and He commanded it to write the measures of all things until the Hour is established
Numbering
Jami al-Kamil 994 (2nd edition)
Azami 994