Talha bin Musarrif reported,

I asked Abdullah bin Abu Awfa, "Did the Prophet ﷺ leave a will?"He replied, "No."I said, "Then how was making a will prescribed for people, or how were they commanded to make wills?"He answered, "He bequeathed the Book of Allah."

Azami 6110

Sahih

عن طلحة بن مصرف قال

سألت عبد الله بن أبي أوفى: هل كان النبي ﷺ أوصى؟ فقال: لا. فقلت: كيف كتب على الناس الوصية؟ أو أمروا بالوصية؟ قال: أوصى بكتاب الله.

الأعظمي 6110صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Bequests and endowments
Section
Enjoining adherence to the Book and the Sunnah
Numbering
Jami al-Kamil 6110 (2nd edition)
Azami 6110