Ibn Abu al-Sari, who was among the companions of the Prophet ﷺ, did not say "from the Ansar." Then the narrators agreed. He is called Basrah. He said, "I married a woman who was reputed to be a virgin, but when I went in to her I found her pregnant."The Prophet ﷺ said, "She is entitled to the dowry, since you have made her private parts lawful for yourself, and the child will be your slave. When she gives birth," Hasan's version says, "flog her," while Ibn Abu al-Sari's version says, "flog her," or he said, "carry out the prescribed punishment on her."
حدثنا مخلد بن خالد والحسن بن علي ومحمد بن أبي السري المعنى قالوا حدثنا عبد الرزاق أخبرنا ابن جريج عن صفوان بن سليم عن سعيد بن المسيب
ابن أبي السري من أصحاب النبي ﷺ ولم يقل من الأنصار ثم اتفقوا يقال له بصرة قال تزوجت امرأة بكرا في سترها فدخلت عليها فإذا هي حبلى فقال النبي ﷺ لها الصداق بما استحللت من فرجها والولد عبد لك فإذا ولدت قال الحسن فاجلدها وقال ابن أبي السري فاجلدوها أو قال فحدوها
No references are available.
[Its chain is daif] Daraqutni narrated it, 3/250, 251, no. 3574, from the hadith of Abdul-Razzaq with this wording. Hakim graded it sahih, 2/183, and Dhahabi agreed with him.Ibn Jurayj narrated it using "an", but he actually narrated it from Ibrahim bin Abu Yahya, from Safwan, with this wording, in Ilal Hadith, no. 1259, and Bayhaqi, 7/157.