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:11065ʿAlī b. Aḥmad b. ʿAbdān > Aḥmad b. ʿUbayd al-Ṣaffār > Jaʿfar b. Aḥmad b. Sinān > Muḥammad b. ʿUbaydullāh b. Bazīʿ > al-Faḍl b. al-ʿAlāʾ > Jaʿfar b. Muḥammad b. ʿAlī from his father > ʿAlī b. al-Ḥusayn > Ibn ʿAbbās

[Machine] The Qur'ans were not sold. A man would come with a piece of paper to the Prophet ﷺ , and the man would stand up, calculate, and then write. Then another man would stand up and write until they finished the Qur'an.  

البيهقي:١١٠٦٥أَخْبَرَنَا عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنبأ أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا جَعْفَرُ بْنُ أَحْمَدَ بْنِ سِنَانٍ ثنا مُحَمَّدُ بْنُ عُبَيْدِ اللهِ بْنِ بَزِيعٍ ثنا الْفَضْلُ بْنُ الْعَلَاءِ ثنا جَعْفَرُ بْنُ مُحَمَّدِ بْنِ عَلِيٍّ عَنْ أَبِيهِ عَنْ عَلِيِّ بْنِ الْحُسَيْنِ عَنِ ابْنِ عَبَّاسٍ قَالَ

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