Sunan Ibn Majah, Book 23, Hadith 30 (Ibn Majah 2750)

It was narrated that Ibn ‘Umar said:

The Messenger of Allah (ﷺ) forbade selling the right of inheritance, or giving it as a gift.