Muwatta Malik, Book 36, Hadith 19 (USC-MSA)

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."

قَالَ يَحْيَى قَالَ مَالِكٌ عَنِ ابْنِ شِهَابٍ، عَنْ سُنَيْنٍ أَبِي جَمِيلَةَ، رَجُلٌ مِنْ بَنِي سُلَيْمٍ أَنَّهُ وَجَدَ مَنْبُوذًا فِي زَمَانِ عُمَرَ بْنِ الْخَطَّابِ قَالَ فَجِئْتُ بِهِ إِلَى عُمَرَ بْنِ الْخَطَّابِ فَقَالَ مَا حَمَلَكَ عَلَى أَخْذِ هَذِهِ النَّسَمَةِ فَقَالَ وَجَدْتُهَا ضَائِعَةً فَأَخَذْتُهَا ‏.‏ فَقَالَ لَهُ عَرِيفُهُ يَا أَمِيرَ الْمُؤْمِنِينَ إِنَّهُ رَجُلٌ صَالِحٌ ‏.‏ فَقَالَ لَهُ عُمَرُ أَكَذَلِكَ قَالَ نَعَمْ ‏.‏ فَقَالَ عُمَرُ بْنُ الْخَطَّابِ اذْهَبْ فَهُوَ حُرٌّ وَلَكَ وَلاَؤُهُ وَعَلَيْنَا نَفَقَتُهُ ‏.‏

sunnah.com

also referenced under: Book 36, Hadith 1423 (In-Book)