Amr bin Su'aib narrated from his father, from his grandfather, that the Messenger of Allah(S.A.W) said:
"Any man who fornicates with a free woman, or a slave woman, then the child born from Zina does not inherit, nor is it inherited from." (IT)
English reference (IT): Vol. 4, Book 3, Hadith 2113 (IT)
Arabic reference (IT): Book 29, Hadith 2259 (IT)