Sunan Abi Dawud, Hadith 786

The above mentioned tradition has been reported by ibn abbas through a different chain of narrators to the same effect. This version adds: The apostle of Allah died, but he did not mention to us that surah al baraah ins a part of al-anfal. Abu Dawood said: Al-sha’bl, Abu Malik, Qatadah, and Thabit b. ‘Umarah said: The prophet( may peace be upon him) did not write”In the name of Allah, the compassionate, the merciful” until Surah al-naml was revealed. This is the meaning of what they said. Further, this is a mursal traditional(omitting the name of the companion)

حَدَّثَنَا زِيَادُ بْنُ أَيُّوبَ، حَدَّثَنَا مَرْوَانُ، - يَعْنِي ابْنَ مُعَاوِيَةَ - أَخْبَرَنَا عَوْفٌ الأَعْرَابِيُّ، عَنْ يَزِيدَ الْفَارِسِيِّ، حَدَّثَنَا ابْنُ عَبَّاسٍ، بِمَعْنَاهُ قَالَ فِيهِ فَقُبِضَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَلَمْ يُبَيِّنْ لَنَا أَنَّهَا مِنْهَا ‏.‏ قَالَ أَبُو دَاوُدَ قَالَ الشَّعْبِيُّ وَأَبُو مَالِكٍ وَقَتَادَةُ وَثَابِتُ بْنُ عُمَارَةَ إِنَّ النَّبِيَّ صلى الله عليه وسلم لَمْ يَكْتُبْ ‏{‏ بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ ‏}‏ حَتَّى نَزَلَتْ سُورَةُ النَّمْلِ هَذَا مَعْنَاهُ ‏.‏

sunnah.com