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." (FR)
English reference (FR): Vol. 4, Book 3, Hadith 2113 (FR)
Arabic reference (FR): Book 29, Hadith 2259 (FR)