عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ لَا مُسَاعَاةَ فِي الْإِسْلَامِ مَنْ سَاعَى فِي الْجَاهِلِيَّةِ فَقَدْ أَلْحَقْتُهُ بِعَصَبَتِهِ وَمَنِ ادَّعَى وَلَدَهُ مِنْ غَيْرِ رِشْدَةٍ فَلَا يَرِثُ وَلَا يُورَثُ
Sayyiduna Abdullah bin Abbas (may Allah be pleased with them) narrates that the Noble Prophet (peace and blessings be upon him) said: There is no existence in Islam for fornication on wages; whoever did so in the time of ignorance, I attribute his lineage to the relatives of his father, and whoever claims to be the father of someone without marriage, neither will the child inherit from him nor will he inherit from the child.