The Qur'anic verse goes: "(It is prescribed when death approaches any of you), if he leaves any goods, that he may bequest to parents and next to kin." The bequest was made in this way until the verse of inheritance repealed it.
عَنِ ابْنِ عَبَّاسٍ { إِنْ تَرَكَ خَيْرًا الْوَصِيَّةُ لِلْوَالِدَيْنِ وَالأَقْرَبِينَ } فَكَانَتِ الْوَصِيَّةُ كَذَلِكَ حَتَّى نَسَخَتْهَا آيَةُ الْمِيرَاثِ