Sahih al-Bukhari, Book 48, Hadith 4 (Bukhari 2412)

Narrated Abu Huraira:

The Prophet (ﷺ) said, "One can ride the mortgaged animal because of what one spends on it, and one can drink the milk of a milch animal as long as it is mortgaged. "