I met Rabia and asked him about it, and he said, Yazid narrated to me from Zayd bin Khalid al-Juhani that the Prophet ﷺ was asked about a stray camel. He became angry, his cheeks turning red, and said, "What business do you have with it? It has its hooves and its water supply with it. It can reach water and feed on trees until its owner finds it."He was asked about a stray sheep, and he said, "Take it, for it is either for you, for your brother, or for the wolf."He was asked about a lost item that someone finds, and he said, "Take note of its container and its tie, then announce it for a year. If someone claims it, give it to them. Otherwise, it becomes part of your own property."
حدثنا إسحق بن إسمعيل بن العلاء الأيلي حدثنا سفيان بن عيينة عن يحيى بن سعيد عن ربيعة بن أبي عبد الرحمن عن يزيد مولى المنبعث
فلقيت ربيعة فسألته فقال حدثني يزيد عن زيد بن خالد الجهني عن النبي ﷺ قال سئل عن ضالة الإبل فغضب واحمرت وجنتاه فقال ما لك ولها معها الحذاء والسقاء ترد الماء وتأكل الشجر حتى يلقاها ربها وسئل عن ضالة الغنم فقال خذها فإنما هي لك أو لأخيك أو للذئب وسئل عن اللقطة فقال اعرف عفاصها ووكاءها وعرفها سنة فإن اعترفت وإلا فاخلطها بمالك
Sourced from Bukhari, Divorce, chapter on the ruling regarding a missing person's family and property, no. 5292, from the hadith of Sufyan bin Uyayna, and Muslim, Lost Property, chapter on identifying the container and tying string and the ruling on stray sheep and camels, no. 1722, from the hadith of Yahya bin Saeed with the same chain.