When Messenger of Allah ﷺ was on his death-bed and in the house there were some people among whom was ʿUmar bin Al-Khattab, the Prophet ﷺ said, "Come, let me write for you a statement after which you will not go astray." ʿUmar said, "The Prophet ﷺ is seriously ill and you have the Qur'an; so the Book of Allah is enough for us." The people present in the house differed and quarrelled. Some said "Go near so that the Prophet ﷺ may write for you a statement after which you will not go astray," while the others said as ʿUmar said. When they caused a hue and cry before the Prophet, Messenger of Allah ﷺ said, "Go away!" Narrated 'Ubaidullah: Ibn ʿAbbas used to say, "It was very unfortunate that Messenger of Allah ﷺ was prevented from writing that statement for them because of their disagreement and noise." (Using translation from Bukhārī 5669)
لَمَّا حُضِرَ رَسُولُ اللهِ ﷺ وَفِي الْبَيْتِ رِجَالٌ وَفِيهِمْ عُمَرُ بْنُ الْخَطَّابِ قَالَ النَّبِيُّ ﷺ هَلُمَّ أَكْتُبْ لَكُمْ كِتَابًا لا تَضِلُّوا بَعْدَهُ أَبَدًا فَقَالَ عُمَرُ إِنَّ رَسُولَ اللهِ ﷺ قَدْ غَلَبَ عَلَيْهِ الْوَجَعُ وَعِنْدَكمُ الْقُرْآنُ حَسْبُنَا كِتَابُ اللهِ فَاخْتَلَفَ أَهْلُ الْبَيْتِ فَاخْتَصَمُوا فَمِنْهُمْ مَنْ يَقُولُ قَرِّبُوا يَكْتُبُ لَكُمْ كِتَابًا لَا تَضِلُّوا بَعْدَهُ وَفِيهِمْ مَنْ يَقُولُ مَا قَالَ عُمَرُ فَلَمَّا أَكْثَرُوا اللَّغْوَ وَالاخْتِلافَ عِنْدَ رَسُولِ اللهِ ﷺ قَالَ رَسُولُ اللهِ ﷺ قُومُوا قَالَ عُبَيْدُ اللهِ وَكَانَ ابْنُ عَبَّاسٍ يَقُولُ إِنَّ الرَّزِيَّةَ كُلَّ الرَّزِيَّةِ مَا حَالَ بَيْنَ رَسُولِ اللهِ ﷺ وَبَيْنَ أَنْ يَكْتُبَ لَهُمْ ذَلِكَ الْكِتَابَ مِنَاخْتِلافِهِمْ وَلَغَطِهِمْ