Sahih Muslim
1458.01

Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:The child is to be attributed to one on whose bed he is born, and for a fornicator there is stoning

1458.02

A hadith like this is narrated on the authority of Abu Huraira