I asked ʿAbdullah bin Abu ʿAufa "Did the Prophet ﷺ make a will? ' He replied, "No." I further asked, "How comes it that the making of a will was enjoined on the people or that they were ordered to make it? " He said, "The Prophet ﷺ made a will concerning Allah's Book."
سَأَلْتُ عَبْدَ اللَّهِ بْنَ أَبِي أَوْفَى ؓ أَوْصَى النَّبِيُّ ﷺ فَقَالَ لاَ فَقُلْتُ كَيْفَ كُتِبَ عَلَى النَّاسِ الْوَصِيَّةُ أَوْ أُمِرُوا بِهَا قَالَ أَوْصَى بِكِتَابِ اللَّهِ