And if you have lost any of your wives to the disbelievers and you subsequently obtain [something],1 then give those whose wives have gone the equivalent of what they had spent. And fear Allāh, in whom you are believers.
Translation: Saheeh International (English)
1 From the side of the disbelievers, i.e., war booty or a believing woman seeking refuge with the Muslims.
If it happens that some of your women leave you for the disbelievers as renegades and you demand your dowry from the disbelievers but they do not give it to you, and thereafter you acquire booty from the disbelievers, then give those husbands whose wives left as renegades the equivalent of the dowry they paid. Be mindful of Allah, in Whom you have faith, by fulfilling His instructions and avoiding His prohibitions.