I heard the Messenger of Allah ﷺ say, "The child belongs to the bed, and the adulterer gets the stone."
حدثنا هشام بن عمار قال حدثنا إسمعيل بن عياش حدثنا شرحبيل بن مسلم قال سمعت
سمعت رسول الله ﷺ يقول الولد للفراش وللعاهر الحجر
Source, [Its isnad is hasan] Ahmad narrated it, 5/267, from the hadith of Ismail through this same chain, at length, and Busiri graded it sahih.