Abdullah bin Amr bin As reported,

I used to write down everything I heard from the Messenger of Allah ﷺ, wanting to memorize it. But the Quraysh discouraged me, saying, "You write down everything you hear from the Messenger of Allah ﷺ, yet the Messenger of Allah ﷺ is a human being who speaks in anger and in contentment."So I stopped writing, and I mentioned this to the Messenger of Allah ﷺ.He said, "Write. By the One in whose hand my soul is, nothing comes out of me except the truth."

Ahmad 6510

Sahih

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

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

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

أحمد 6510صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Amr bin As
Numbering
Darussalam 6510
Ahmad 6510