Hadith 10386

حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ ، حَدَّثَنَا عَوْفٌ ، عَنِ الْحَسَنِ ، قََالَ : بَلَغَنِي , أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَضَى أَنَّ " الْوَلَدَ لِصَاحِبِ الْفِرَاشِ ، وَلِلْعَاهِرِ الْحَجَرَ " .
It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) and Abu Salama (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) decreed that the child belongs to the owner of the bed, and for the adulterer there are stones.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 10386
Hadith Grading حکم دارالسلام: حديث صحيح، خ: 6818، م: 1458، وهذا إسناد مرسل