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.
bayhaqi:17704Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. Isḥāq al-Faqīh > Muḥammad b. Ayyūb al-Rāzī > Aḥmad b. Jamīl al-Marwazī > ʿAbdullāh b. al-Mubārak > Rabāḥ b. Zayd > ʿUmar b. Ḥabīb > al-Qāsim b. Abū Bazzah > Saʿīd b. Jubayr > Ibn ʿAbbās

[Machine] The Messenger of Allah ﷺ said, "Verily, the first thing Allah created is the pen, and He commanded it to write everything that will be." This is also narrated in the hadith of Ubada bin As-Samit (may Allah be pleased with him) as a marfu' (elevated) narration.  

البيهقي:١٧٧٠٤أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو بَكْرِ بْنُ إِسْحَاقَ الْفَقِيهُ أنبأ مُحَمَّدُ بْنُ أَيُّوبَ الرَّازِيُّ أنبأ أَحْمَدُ بْنُ جَمِيلٍ الْمَرْوَزِيُّ ثنا عَبْدُ اللهِ بْنُ الْمُبَارَكِ عَنْ رَبَاحِ بْنِ زَيْدٍ عَنْ عُمَرَ بْنِ حَبِيبٍ عَنِ الْقَاسِمِ بْنِ أَبِي بَزَّةَ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ أَنَّهُ كَانَ يُحَدِّثُ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ إِنَّ أَوَّلَ شَيْءٍ خَلَقَ اللهُ جَلَّ ثَنَاؤُهُ الْقَلَمُ وَأَمَرَهُ فَكَتَبَ كُلَّ شَيْءٍ يَكُونُ وَرُوِيَ ذَلِكَ أَيْضًا فِي حَدِيثِ عُبَادَةَ بْنِ الصَّامِتِ مَرْفُوعًا