Sahih al-Bukhari Book 48, Hadith 6
Allah's Messenger (ﷺ) bought some foodstuff from a Jew and mortgaged his armor to him.
Allah's Messenger (ﷺ) said, "The mortgaged animal can be used for riding as long as it is fed and the milk of the milch animal can be drunk according to what one spend on it. The one who rides the animal or drinks its milk should provide the expenditures."
I wrote a letter to Ibn `Abbas and he wrote to me that the Prophet (ﷺ) had given the verdict that the defendant had to take an oath.