Abdullah bin Amr bin As reported,

I used to write down everything I heard from the Messenger of Allah ﷺ, wanting to memorize it. The Quraysh forbade me, saying, "Do you write down everything you hear? The Messenger of Allah ﷺ is a human being who speaks in anger and in pleasure."So I stopped writing, and I mentioned this to the Messenger of Allah ﷺ. He pointed with his finger to his mouth and said, "Write. By the One in whose hand my soul rests, nothing comes out of it but truth."

Abu Dawud 3646

Sahih

حدثنا مسدد وأبو بكر بن أبي شيبة قالا حدثنا يحيى عن عبيد الله بن الأخنس عن الوليد بن عبد الله بن أبي مغيث عن يوسف بن ماهك

عن عبد الله بن عمرو قال

كنت أكتب كل شيء أسمعه من رسول الله ﷺ أريد حفظه فنهتني قريش وقالوا أتكتب كل شيء تسمعه ورسول الله ﷺ بشر يتكلم في الغضب والرضا فأمسكت عن الكتاب فذكرت ذلك لرسول الله ﷺ فأومأ بأصبعه إلى فيه فقال اكتب فوالذي نفسي بيده ما يخرج منه إلا حق

أبو داود 3646صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Knowledge
Chapter
Writing down knowledge
Numbering
Darussalam 3646
Abu Dawud 3646