Ikrimah narrates from Ibn Abbas (may Allah be pleased with them both) that "the Prophet (peace and blessings be upon him) forbade selling an animal for an animal on credit."
Narrating it from Ma'mar as connected (mawsul) is, in all its routes, an error (wahm); the correct version is the following, mursal one.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 10533