It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he ruled concerning a foundling that he is free, and he recited this verse: "And they sold him for a paltry price, a few counted dirhams, and they had no interest in him (Yusuf)" [Surah Yusuf: 20].
Hadith Referenceالسنن الكبرى للبيهقي / كتاب اللقطة / 12135