Sahih al-Bukhari 2372
Isma'il narrated to us that Malik told us. He narrated from Rabi'ah bin Abi Abdur Rahman, Rabi'ah from Yazid, the freed slave of Munba'ith, Yazid from Hazrat Zaid bin Khalid Juhani (ra). He said: A man came to the Messenger of Allah (saw) and asked him about things found lying about. He (saw) said: “Recognise its bag and its tie. Then keep announcing it for a year. If its owner comes, well and good; otherwise use it as you wish.” He said: A stray goat (what is the ruling of the Holy Prophet (saw) concerning it)? He (saw) said: “It is for you, or for your brother, or for a wolf.” He said: And a stray camel? He (saw) said: “What have you to do with it? It has its water-skin with it and its sock (that is, its feet). It drinks water and eats from the trees until its owner finds it.”
AI-translated by Islam-Today