Narrated Ibn 'Umar:
The Messenger of Allah (ﷺ) forbade selling or giving away the right to inheritance by a manumitted slave.