Mua’wiya ibn Al-Hakam reported: I said, “O Messenger of Allah, among us are men who write script.” The Messenger of Allah, peace and blessings be upon him, said, “There was a prophet among the prophets who wrote script. Whoever writes according to his way is right.”
Source: Ṣaḥīḥ Muslim 537
Grade: Sahih (authentic) according to Muslim
Al-Qurtubi said, “Idris, upon him be peace, was the first to write with the pen, the first to sew and stitch his clothing, and the first to study knowledge of the stars, their calculations, and their movements.”
Source: Tafsīr al-Qurṭubī 19:56
عَنْ مُعَاوِيَةَ بْنِ الْحَكَمِ السُّلَمِيِّ قَالَ قُلْتُ يَا رَسُولَ اللَّهِ وَمِنَّا رِجَالٌ يَخُطُّونَ قَالَ كَانَ نَبِيٌّ مِنْ الْأَنْبِيَاءِ يَخُطُّ فَمَنْ وَافَقَ خَطَّهُ فَذَاكَ
537 صحيح مسلم كتاب السلام باب تحريم الكهانة وإتيان الكهان
قال القرطبي إِدْرِيسُ عَلَيْهِ السَّلَامُ أَوَّلُ مَنْ خَطَّ بِالْقَلَمِ وَأَوَّلُ مَنْ خَاطَ الثِّيَابَ وَلَبِسَ الْمَخِيطَ وَأَوَّلُ مَنْ نَظَرَ فِي عِلْمِ النُّجُومِ وَالْحِسَابِ وَسَيْرِهَا
19:56 الجامع لأحكام القرآن سورة مريم قوله تعالى واذكر في الكتاب إدريس