Ibn ʿAbbas said, "When Messenger of Allah ﷺ was on his deathbed and there were some men in the house, he said, 'Come near, I will write for you something after which you will not go astray.' Some of them ( i.e. his companions) said, 'Messenger of Allah ﷺ is seriously ill and you have the (Holy) Qur'an. Allah's Book is sufficient for us.' So the people in the house differed and started disputing. Some of them said, 'Give him writing material so that he may write for you something after which you will not go astray.' while the others said the other way round. So when their talk and differences increased, Allah's Apostle said, "Get up." Ibn ʿAbbas used to say, "No doubt, it was very unfortunate (a great disaster) that Messenger of Allah ﷺ was prevented from writing for them that writing because of their differences and noise."
لَمَّا حُضِرَ رَسُولُ اللَّهِ ﷺ وَفِي الْبَيْتِ رِجَالٌ فَقَالَ النَّبِيُّ ﷺ هَلُمُّوا أَكْتُبْ لَكُمْ كِتَابًا لاَ تَضِلُّوا بَعْدَهُ فَقَالَ بَعْضُهُمْ إِنَّ رَسُولَ اللَّهِ ﷺ قَدْ غَلَبَهُ الْوَجَعُ وَعِنْدَكُمُ الْقُرْآنُ حَسْبُنَا كِتَابُ اللَّهِ فَاخْتَلَفَ أَهْلُ الْبَيْتِ وَاخْتَصَمُوا فَمِنْهُمْ مَنْ يَقُولُ قَرِّبُوا يَكْتُبُ لَكُمْ كِتَابًا لاَ تَضِلُّوا بَعْدَهُ وَمِنْهُمْ مَنْ يَقُولُ غَيْرَ ذَلِكَ فَلَمَّا أَكْثَرُوا اللَّغْوَ وَالاِخْتِلاَفَ قَالَ رَسُولُ اللَّهِ ﷺ قُومُوا قَالَ عُبَيْدُ اللَّهِ فَكَانَ يَقُولُ ابْنُ عَبَّاسٍ إِنَّ الرَّزِيَّةَ كُلَّ الرَّزِيَّةِ مَا حَالَ بَيْنَ رَسُولِ اللَّهِ ﷺ وَبَيْنَ أَنْ يَكْتُبَ لَهُمْ ذَلِكَ الْكِتَابَ لاِخْتِلاَفِهِمْ وَلَغَطِهِمْ