It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that a man of the Ansar married a woman from Banu al-Ajlan; he then consummated the marriage with her and spent the night with her. When morning came, he said: "I did not find her a virgin." So the matter of the two of them was brought before the Messenger of Allah (peace and blessings be upon him). He (peace and blessings be upon him) called the girl and asked her, and she said: "Of course! I was indeed a virgin." Then the Messenger of Allah (peace and blessings be upon him) gave a ruling concerning the two of them, and she was given the dower (mahr).
Imam Ahmad (may Allah have mercy on him) narrated it from Ya'qub bin Ibrahim.
And Imam Ibn Majah (may Allah have mercy on him) narrated it from Ali bin Salamah, from Ya'qub bin Ibrahim, from his father.
(Imam Diya al-Din al-Maqdisi (may Allah have mercy on him) said:) "My opinion is that Ibn Ishaq (may Allah have mercy on him) did not hear it from Talhah; and Allah knows best."
Related hadith on this topic