It is reported from Sayyiduna Ibn Abbas (may Allah be pleased with them both) concerning the verse "If he leaves wealth, the bequest is for the parents and the near relatives" [Surah al-Baqarah: 180] that the bequest was permissible at first, until the verse of inheritance abrogated it.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوصايا / 12546