Sunan al-Darimi 464
أَخْبَرَنَا يَزِيدُ بْنُ هَارُونَ، أَنبَأَنَا هَمَّامٌ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ﵁، أَنَّ النَّبِيَّ ﷺ قَالَ: «لَا تَكْتُبُوا عَنِّي شَيْئًا إِلَّا الْقُرْآنَ، فَمَنْ كَتَبَ عَنِّي شَيْئًا غَيْرَ الْقُرْآنِ، فَلْيَمْحُهُ»
Yazid ibn Harun informed us; he said: Hammam informed us, from Zayd ibn Aslam, from ʿAtaʾ ibn Yasar, from Abu Saʿid al-Khudri, may Allah be pleased with him, that the Prophet ﷺ said: "Do not write anything from me except the Quran. Whoever has written anything from me other than the Quran, let him erase it."