Yazid bin Nu'aym (may Allah have mercy on him) narrated that a man of Banu Aslam called Ubayd bin Uwaymir had relations with his slave-woman; she became pregnant and bore him a boy called Humam, and this was in the Jahiliyyah (pre-Islamic era). My uncle came to the Messenger of Allah (peace and blessings be upon him) and spoke to him about his son, and the Messenger of Allah (peace and blessings be upon him) said to him: "Take back your son as far as you are able." So he went and took his son and brought him to the Prophet (peace and blessings be upon him), and the boy's master also came to the Messenger of Allah (peace and blessings be upon him). The Messenger of Allah (peace and blessings be upon him) offered him two boys and said: "Take one of them and leave this man his son." So he took one boy and left him his son.
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3586