A woman embraced Islam during the time of the Messenger of Allah ﷺ, then she remarried. Her first husband came to the Prophet ﷺ and said, "Messenger of Allah, I had already accepted Islam, and she knew of my conversion."So the Prophet ﷺ took her back from her second husband and returned her to her first husband.
حدثنا الزبيري وأسود بن عامر قالا حدثنا إسرائيل عن سماك عن عكرمة
أسلمت امرأة على عهد رسول الله ﷺ فتزوجت فجاء زوجها الأول إلى النبي ﷺ فقال يا رسول الله إني قد أسلمت وعلمت إسلامي فنزعها النبي ﷺ من زوجها الآخر وردها على زوجها الأول