We asked the Prophet ﷺ for permission to write down [his hadith], but he did not grant us permission.
حدثنا سفيان بن وكيع حدثنا سفيان بن عيينة عن زيد بن أسلم عن عطاء بن يسار
استأذنا النبي ﷺ في الكتابة فلم يأذن لنا
No references are available.
Muslim also narrated it in the chapter on Zuhd, in the section on verifying hadith and the ruling on writing down knowledge, hadith no. 3004, from the hadith of Zayd bin Aslam through the same chain.