It is narrated from Ibn Umar (may Allah be pleased with them both) that the verse of inheritance abrogated the bequest, that is: "the bequest is for the parents and the near relatives" [Surah al-Baqarah: 180].
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوصايا / 12547