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.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 14331
Hadith Gradingحکم دارالسلام:حسن لغيره، وهذا إسناد ضعيف لضعف نصر بن باب، وحجاج بن أرطاة وأبو الزبير مدلسان، ولم يصرحا بالسماع