Narrated `Aisha
Sa`d bin Abi Waqqas and `Abd bin Zam`a quarrelled with each other (regarding a child). The Prophet (ﷺ) said, "The boy is for you, O `Abd bin Zam`a, for the boy is for (the owner) of the bed. O Sauda ! Screen yourself from the boy." The sub-narrator, Al-Laith added (that the Prophet (ﷺ) also said), "And the stone is for the person who commits an illegal sexual intercourse."
Narrated Abu Huraira
The Prophet (ﷺ) said, "The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.'