It wasnarrated that Ibn 'Umar said:
The Messenger of Allah (ﷺ)forbadeselling the right of inheritance, or giving it as a gift. (JA)
English reference (JA): Vol. 4, Book 23, Hadith 2748 (JA)
Arabic reference (JA): Book 23, Hadith 2853 (JA)