Abdullah bin Abbas reported,

When the Messenger of Allah ﷺ was on the verge of 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 ﷺ is overcome by his pain, and you have the Quran. The Book of Allah is sufficient for us."The people in the house disagreed and quarreled. Some of them said, "Come closer so that the Messenger of Allah ﷺ may write for you a document after which you will never go astray." Others repeated what Umar had said.When their idle talk and disagreement grew loud in the presence of the Messenger of Allah ﷺ, he said, "Get up and leave."Ubaydullah said that Ibn Abbas used to say, "The real calamity, the entire calamity, was what came between the Messenger of Allah ﷺ and his writing that document for them, namely their disagreement and clamor."

Muslim 4234

Sahih

و حدثني محمد بن رافع وعبد بن حميد قال عبد أخبرنا و قال ابن رافع حدثنا عبد الرزاق أخبرنا معمر عن الزهري عن عبيد الله بن عبد الله بن عتبة

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

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

مسلم 4234صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Bequests
Chapter
Leaving no bequest for one who has nothing to bequeath
Numbering
Darussalam 4234
Muslim 4234