Hadith.3813 - Imam (as) said regarding a man who bought an animal but did not have its price, so he went to one of his companions and said: "O so-and-so, pay on my behalf, and the profit will be shared between me and you."
The companion paid on his behalf, but the animal died.
Imam (as) said: "The price is upon both of them because if there had been a profit, it would have been shared between them."