English translation
2274. 'Amr bin Shu'āib narrated from his father, from his grandfather that a man stood up in front of the Messenger of Allāh ﷺ and said: "So-and-so is my son, for I fornicated with his mother in the times of Jāhiliyyah." The Messenger of Allāh ﷺ said: 'There is no prescribing (of genealogies) in Islam. The customs of Jāhiliyyah have all gone. The child is ascribed to the bed, and the Hajar (stone) is for the Āhir (fornicator).”” (Hasan)
