It was narrated from Jabir that the Messenger of Allah (ﷺ) said:
"There is nothing wrong with selling animals, one for two, hand to hand," but he disliked selling them on credit. (RU)
English reference (RU): Vol. 3, Book 12, Hadith 2271 (RU)
Arabic reference (RU): Book 12, Hadith 2357 (RU)