Abdullah bin Abbas reported,

A woman came to the Prophet ﷺ and accepted Islam, and a man married her. Then her first husband came and said, "Messenger of Allah, I had accepted Islam along with her, and she knew of my conversion."So the Messenger of Allah ﷺ took her away from her second husband and returned her to her first husband.

Ibn Majah 2008

Daif

حدثنا أحمد بن عبدة حدثنا حفص بن جميع حدثنا سماك عن عكرمة

عن ابن عباس

أن امرأة جاءت إلى النبي ﷺ فأسلمت فتزوجها رجل قال فجاء زوجها الأول فقال يا رسول الله إني قد كنت أسلمت معها وعلمت بإسلامي قال فانتزعها رسول الله ﷺ من زوجها الآخر وردها إلى زوجها الأول

ابن ماجه 2008ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Marriage
Chapter
Two spouses when one of them accepts Islam before the other
Numbering
Darussalam 2008
Ibn Majah 2008