Hadith 533:4
'Affan narrated to us, Hammad narrated to us, from Qatadah, from Shahr ibn Hawshab, from 'Abd al-Rahman ibn Ghanam, from 'Amr ibn Kharijah, who said: The Messenger of Allah (peace and blessings of Allah be upon him) delivered a sermon while he was upon his she-camel, and I was beneath its neck, and it was chewing its cud, and its saliva was flowing between my shoulders. He said: "Indeed, Allah has given every person who has a right his right. There is no bequest for an heir. The child belongs to the bed, and for the adulterer is the stone. Whoever claims [lineage] to other than his father, or affiliates himself with other than his masters, upon him is the curse of Allah, the angels, and all of mankind. Neither a mandatory act nor a supererogatory act will be accepted from him."
حدثنا عفان، حدثنا حماد، عن قتادة، عن شهر بن حوشب، عن عبد الرحمن بن غنم، عن عمرو بن خارجة، قال: خطب رسول الله صلى الله عليه وسلم وهو على ناقته، وأنا تحت جرانها وهي تقصع بجرتها، ولعابها يسيل بين كتفي، قال: " إن الله أعطى لكل ذي حق حقه، ولا وصية لوارث والولد للفراش، وللعاهر الحجر، ومن ادعى إلى غير أبيه، أو انتمى إلى غير مواليه، فعليه لعنة الله والملائكة والناس أجمعين، لا يقبل منه صرف ولا عدل "