It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) forbade the transaction of exchanging two animals for one on credit, but if the transaction is done in cash, then there is no harm in it.