Sunan Abi Dawud, Book 13, Hadith 92 (Abu Dawud 2267)

The tradition mentioned above has also been transmitted by Muhammad bin Rashid through a different chain of narrators to the same effect. This version adds “he is the child of fornication for the people of his mother whether she was free or a slave. This attribution of a child to the parents was practiced in the beginning of Islam. The property divided before Islam will not be taken into account.