English : Vol. 5, Book 44, Hadith 3319
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّ أَوَّلَ مَا خَلَقَ اللَّهُ الْقَلَمَ فَقَالَ لَهُ اكْتُبْ فَجَرَى بِمَا هُوَ كَائِنٌ إِلَى الأَبَدِ "
Abdul-Wahid bin Sulaim said:
"I arrived in Makkah and met Ata bin Abi Rabah. I said: "O Abu Muhammad! Some people with us speak about Al-Qadar.' Ata said: "I met Al-Walid bin Ubadah bin As-Samit and he said: "My father narrated to me, he said: "I heard the Messenger of Allah saying: "Verily the first of what Allah created was the Pen. He said to it: "Write." So it wrote what will be forever.'"
Full reference and source
English : Vol. 5, Book 44, Hadith 3319 Arabic : Book 47, Hadith 3637
View source on Sunnah.com (opens in a new tab)