The Messenger of Allah ﷺ said, "The child belongs to the marriage bed, and the adulterer gets the stone."Abu Abdul-Rahman said, "I do not consider this to be from Abdullah bin Masud, and Allah, the Exalted, knows best."
أخبرنا إسحق بن إبراهيم قال حدثنا جرير عن مغيرة عن أبي وائل
عن رسول الله ﷺ قال الولد للفراش وللعاهر الحجر قال أبو عبد الرحمن ولا أحسب هذا عن عبد الله بن مسعود والله تعالى أعلم
[Sahih] Ibn Hibban narrated it, no. 1336, from the hadith of Jareer bin Abdul-Hameed with this wording, and it is in al-Kubra, no. 5680.Mughira is Ibn Muqsim, mentioned previously, no. 1344. The hadith has many corroborating narrations, some of which have been mentioned previously, nos. 3513 and 3512.