Abdullah bin Abbas reported,

When the Messenger of Allah ﷺ was approaching death, there were some men in the house, among them Umar bin Khattab. The Prophet ﷺ said, "Come, let me write for you a document after which you will never go astray."Umar said, "The Messenger of Allah ﷺ has been overcome by pain, and we have the Quran. The Book of Allah is sufficient for us."The people in the house disagreed and quarreled. Some of them said, "Bring him what he needs so he may write for you a document after which you will not go astray." Others said what Umar had said. When their idle talk and disagreement increased in the presence of the Messenger of Allah ﷺ, the Messenger of Allah ﷺ said, "Get up and leave."Ubaydullah said that Ibn Abbas used to say, "The calamity, the entire calamity, was what came between the Messenger of Allah ﷺ and his writing that document for them, namely their disagreement and clamor."

Ahmad 3111

Sahih

حدثنا عبد الرزاق حدثنا معمر عن الزهري عن عبيد الله بن عبد الله

عن ابن عباس قال

لما حضر رسول الله ﷺ وفي البيت رجال وفيهم عمر بن الخطاب رضي الله عنه قال النبي ﷺ هلم أكتب لكم كتابا لن تضلوا بعده أبدا فقال عمر إن رسول الله ﷺ قد غلب عليه الوجع وعندنا القرآن حسبنا كتاب الله فاختلف أهل البيت فاختصموا فمنهم من يقول قربوا يكتب لكم كتابا لا تضلوا بعده وفيهم من يقول ما قال عمر فلما أكثروا اللغو والاختلاف عند رسول الله ﷺ قال رسول الله ﷺ قوموا قال عبيد الله وكان ابن عباس يقول إن الرزية كل الرزية ما حال بين رسول الله ﷺ وبين أن يكتب لهم ذلك الكتاب من اختلافهم ولغطهم

أحمد 3111صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 3111
Ahmad 3111