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 from doing so, saying, "Are you writing down everything, when the Messenger of Allah ﷺ speaks in anger and in pleasure alike?"So I stopped, until I mentioned that to the Messenger of Allah ﷺ. He said, "Write, for by the One in whose hand is my soul, nothing comes out from it except the truth."

Ahmad 6802

Sahih

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

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

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

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