It wasnarrated that Ibn 'Umar said:
"The Messenger of Allah (ﷺ)forbade selling the right of inheritance or giving it away." (JA)
English reference (JA): Vol. 4, Book 23, Hadith 2747 (JA)
Arabic reference (JA): Book 23, Hadith 2852 (JA)