Abu al-Zinad (may Allah have mercy on him) said: I heard the jurists of the people of Madinah saying: A man who, not having been muhsan before that, marries but has not been with his wife, and then commits adultery, there is no stoning for him, and the woman is likewise. If he has been with his wife for an hour of the night or the day, or more, and then commits adultery after that, stoning is due upon him, and the woman is likewise. Slave-women who are mothers of children (umm walad) do not make (their master) liable to stoning.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 16948