It was reported to the Prophet ﷺ that he said, "Whoever abandons an animal in a place where it would perish, and another man revives it, it belongs to the one who revived it."
حدثنا محمد بن عبيد عن حماد يعني ابن زيد عن خالد الحذاء عن عبيد الله بن حميد بن عبد الرحمن
إلى النبي ﷺ أنه قال من ترك دابة بمهلك فأحياها رجل فهي لمن أحياها
No references are available.
[Daif] See the previous hadith. Bayhaqi also narrated it, 6/198, from the hadith of Abu Dawud with the same wording.