Maliks Muwatta Book 36, Hadith Number 19.

Section : Judgement on the Abandoned Child.

Yahya said that Malik related from Ibn Shihab that Sunayn Abi Jamila, a man from the Banu Sulaym, found an abandoned child in the time of Umar ibn al-Khattab. Sunayn took him to Umar ibn al-Khattab. He asked, “What has induced you to take this person?” He answered, “I found him lost, so I took him.” Umar’s advisor said to him,’ ‘Amir al-Muminin! He is a man who does good.” Umar inquired of him, “Is it so?” He replied, “Yes.” Umar ibn al-Khattab said, “Go, he is free, and you have his wala’ inheritance, and we will provide for him.”

Yahya said that he heard Malik say, “What is done in our community about an abandoned child is that he is free, and his wala’ inheritance belongs to the muslims, and they inherit from him and pay his blood money.”