BUKHARI 3168:
from Ibn ʿAbbās —
that he heard Ibn ʿAbbas saying, "Thursday! And you know not what Thursday is? After that Ibn ʿAbbas wept till the stones on the ground were soaked with his tears. On that I asked Ibn ʿAbbas, "What is (about) Thursday?" He said, "When the condition (i.e. health) of Messenger of Allah ﷺ deteriorated, he said, 'Bring me a bone of scapula, so that I may write something for you after which you will never go astray.'The people differed in their opinions although it was improper to differ in front of a prophet, They said, 'What is wrong with him? Do you think he is delirious? Ask him (to understand). The Prophet ﷺ replied, 'Leave me as I am in a better state than what you are asking me to do.' Then the Prophet ﷺ ordered them to do three things saying, 'Turn out all the pagans from the Arabian Peninsula, show respect to all foreign delegates by giving them gifts as I used to do.' " The sub-narrator added, "The third order was something beneficial which either Ibn ʿAbbas did not mention or he mentioned but I forgot.'
البخاري ٣١٦٨:
عن ابن عباس —
اشْتَدَّ بِرَسُولِ اللَّهِ ﷺ وَجَعُهُ فَقَالَ ائْتُونِي بِكَتِفٍ أَكْتُبْ لَكُمْ كِتَابًا لاَ تَضِلُّوا بَعْدَهُ أَبَدًا فَتَنَازَعُوا وَلاَ يَنْبَغِي عِنْدَ نَبِيٍّ تَنَازُعٌ فَقَالُوا مَا لَهُ أَهَجَرَ اسْتَفْهِمُوهُ فَقَالَ ذَرُونِي فَالَّذِي أَنَا فِيهِ خَيْرٌ مِمَّا تَدْعُونِي إِلَيْهِ فَأَمَرَهُمْ بِثَلاَثٍ قَالَ أَخْرِجُوا الْمُشْرِكِينَ مِنْ جَزِيرَةِ الْعَرَبِ وَأَجِيزُوا الْوَفْدَ بِنَحْوِ مَا كُنْتُ أُجِيزُهُمْ وَالثَّالِثَةُ خَيْرٌ إِمَّا أَنْ سَكَتَ عَنْهَا وَإِمَّا أَنْ قَالَهَا فَنَسِيتُهَا قَالَ سُفْيَانُ هَذَا مِنْ قَوْلِ سُلَيْمَانَ
hadithunlocked.com