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:21604Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-Walīd > Aḥmad b. Naṣr b. Ibrāhīm > Muḥammad b. Mirdās > Yaḥyá b. Abū Rawq from my father > al-Ḍaḥḥāk

[Machine] In His saying, "And write them if you know in them any good," (Quran, An-Nur 33), He said it as a trust and a fulfillment.  

البيهقي:٢١٦٠٤أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو الْوَلِيدِ ثنا أَحْمَدُ بْنُ نَصْرِ بْنِ إِبْرَاهِيمَ ثنا مُحَمَّدُ بْنُ مِرْدَاسٍ ثنا يَحْيَى بْنُ أَبِي رَوْقٍ ثنا أَبِي عَنِ الضَّحَّاكِ عَنِ ابْنِ عَبَّاسٍ

فِي قَوْلِهِ {فَكَاتِبُوهُمْ إِنْ عَلِمْتُمْ فِيهِمْ خَيْرًا} [النور 33] قَالَ أَمَانَةً وَوَفَاءً