It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) forbade the sale of two animals for one on credit, but if the transaction is in cash, then there is no harm.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 15094
Hadith Gradingحکم دارالسلام:حسن لغيره، وهذا إسناد ضعيف، الحجاج- وهو ابن أرطاة- وأبو الزبير مدلسان ولم يصرحا بالسماع، وانظر لزاما: 14331