Ibn Shihab al-Zuhri narrates that a man told him that he had picked up a child born of fornication and brought him to Sayyiduna Umar (may Allah be pleased with him), who said: "Go and have him nursed with the wealth of Allah (the public treasury), and his wala' (patronage) is yours." Ibn Shihab said: And the man who picked up this child and brought him to Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) told me this himself.
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6471