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. (Using translation from Abū Dāʾūd 2869)
عَنْ عِكْرِمَةَ وَالْحَسَنِ {إِنْ تَرَكَ خَيْرًا الْوَصِيَّةُ لِلْوَالِدَيْنِ وَالْأَقْرَبِينَ} [البقرة 180] «فكَانَتِ الْوَصِيَّةُ كَذَلِكَ حَتَّى نَسَخَتْهَا آيَةُ الْمِيرَاثِ»