Nafi' narrates from Ibn Umar (may Allah be pleased with them both) that he saw no harm in a contract of manumission (mukatabah) in exchange for young slaves.