Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:3319Yaḥyá b. Mūsá > Abū Dāwud al-Ṭayālisī > ʿAbd al-Wāḥid b. Sulaym

“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.’”  

الترمذي:٣٣١٩حَدَّثَنَا يَحْيَى بْنُ مُوسَى حَدَّثَنَا أَبُو دَاوُدَ الطَّيَالِسِيُّ حَدَّثَنَا عَبْدُ الْوَاحِدِ بْنُ سُلَيْمٍ قَالَ قَدِمْتُ مَكَّةَ فَلَقِيتُ عَطَاءَ بْنَ أَبِي رَبَاحٍ فَقُلْتُ لَهُ يَا أَبَا مُحَمَّدٍ إِنَّ أُنَاسًا عِنْدَنَا يَقُولُونَ فِي الْقَدَرِ فَقَالَ عَطَاءٌ لَقِيتُ الْوَلِيدَ بْنَ عُبَادَةَ بْنِ الصَّامِتِ قَالَ حَدَّثَنِي أَبِي قَالَ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ إِنَّ أَوَّلَ مَا خَلَقَ اللَّهُ الْقَلَمَ فَقَالَ لَهُ اكْتُبْ فَجَرَى بِمَا هُوَ كَائِنٌ إِلَى الأَبَدِ وَفِي الْحَدِيثِ قِصَّةٌ قَالَ هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ غَرِيبٌ وَفِيهِ عَنِ ابْنِ عَبَّاسٍ