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).
سَأَلْتُ عَبْدَ اللَّهِ بْنَ أَبِي أَوْفَى ؓ هَلْ كَانَ النَّبِيُّ ﷺ أَوْصَى فَقَالَ لاَ فَقُلْتُ كَيْفَ كُتِبَ عَلَى النَّاسِ الْوَصِيَّةُ أَوْ أُمِرُوا بِالْوَصِيَّةِ قَالَ أَوْصَى بِكِتَابِ اللَّهِ