Language:
كتاب الوصايا
55  
Wills and Testaments (Wasaayaa)
(1)
Chapter: Al-Wasaya
(1)
باب الْوَصَايَا
Sahih al-Bukhari 2740

Narrated Talha bin Musarrif:

I asked `Abdullah bin Abu `Aufa "Did the Prophet (ﷺ) make a will?" He replied, "No," I asked him, "How is it then that the making of a will has been enjoined on people, (or that they are ordered to make a will)?" He replied, "The Prophet (ﷺ) bequeathed Allah's Book (i.e. Qur'an).

حَدَّثَنَا خَلاَّدُ بْنُ يَحْيَى، حَدَّثَنَا مَالِكٌ، حَدَّثَنَا طَلْحَةُ بْنُ مُصَرِّفٍ، قَالَ سَأَلْتُ عَبْدَ اللَّهِ بْنَ أَبِي أَوْفَى ـ رضى الله عنهما ـ هَلْ كَانَ النَّبِيُّ صلى الله عليه وسلم أَوْصَى فَقَالَ لاَ‏.‏ فَقُلْتُ كَيْفَ كُتِبَ عَلَى النَّاسِ الْوَصِيَّةُ أَوْ أُمِرُوا بِالْوَصِيَّةِ قَالَ أَوْصَى بِكِتَابِ اللَّهِ‏.‏
Reference : Sahih al-Bukhari 2740
In-book reference : Book 55, Hadith 3
USC-MSA web (English) reference : Vol. 4, Book 51, Hadith 3
  (deprecated numbering scheme)