It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that he heard the Noble Prophet (peace and blessings be upon him) say: "The child belongs to the (owner of the) bed, and for the adulterer there are stones."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 9302