o believers when believing women come over to you as refugees then examine them. god alone is cognisant of their faith. if you find that they are believers do not send them back to unbelievers. they are not lawful for them nor are infidels lawful for believing women. give the unbelievers what they have spent on them. there is no sin if you marry them provided you give their dowers to them. do not retain your ties with unbelieving women. ask for the return of what you have spent and the unbelievers should ask for the return of what they have spent. this is the judgement of god. he judges between you. god is allknowing and allwise.
يا أيها الذين آمنوا إذا جاءكم المؤمنات مهاجرات فامتحنوهن الله أعلم بإيمانهن فإن علمتموهن مؤمنات فلا ترجعوهن إلى الكفار لا هن حل لهم ولا هم يحلون لهن وآتوهم ما أنفقوا ولا جناح عليكم أن تنكحوهن إذا آتيتموهن أجورهن ولا تمسكوا بعصم الكوافر واسألوا ما أنفقتم وليسألوا ما أنفقوا ذلكم حكم الله يحكم بينكم والله عليم حكيم