Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:21467Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās > Yaḥyá b. Abū Ṭālib > Yazīd > Hishām > al-Ḥasan

[Machine] The foundling belongs to the Muslims; his inheritance is for them, and his guardianship is on them. The owner has nothing of it except the reward.  

البيهقي:٢١٤٦٧أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ ثنا يَحْيَى بْنُ أَبِي طَالِبٍ أنبأ يَزِيدُ أنبأ هِشَامٌ عَنِ الْحَسَنِ قَالَ

اللَّقِيطُ لِلْمُسْلِمِينَ مِيرَاثُهُ وَعَلَيْهِمْ جَرِيرَتُهُ وَلَيْسَ لِصَاحِبِهِ مِنْهُ شَيْءٌ إِلَّا الْأَجْرُ