Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:18835Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbū Bakr al-Qāḍī > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Aḥmad b. ʿAbd al-Jabbār > Yūnus b. Bukayr > Ibn Isḥāq > al-Zuhrī

[Machine] About the saying of Allah: "When the believing women come to you as emigrants, examine them" [Surah Al-Mumtahanah 10], Urwah wrote to him that the Messenger of Allah, ﷺ , approved of the women of Hudaybiyyah and made it a condition for them that whoever came to him without the permission of their guardian, he would send them back. So when the Muslim women migrated to the Messenger of Allah, ﷺ , Allah commanded him to examine them. If they came seeking Islam willingly, he would not send them back. Allah said: "But if you know them to be believers, then do not return them to the disbelievers" [Surah Al-Mumtahanah 10]. So the Messenger of Allah, ﷺ , detained the women and sent back the men.  

البيهقي:١٨٨٣٥أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو بَكْرٍ الْقَاضِي قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا أَحْمَدُ بْنُ عَبْدِ الْجَبَّارِ ثنا يُونُسُ بْنُ بُكَيْرٍ عَنِ ابْنِ إِسْحَاقَ حَدَّثَنِي الزُّهْرِيُّ قَالَ دَخَلْتُ عَلَى عُرْوَةَ بْنِ الزُّبَيْرِ وَقَدْ كَتَبَ إِلَيْهِ ابْنُ أَبِي هُنَيْدٍ يَسْأَلُهُ

عَنْ قَوْلِ اللهِ ﷻ {إِذَا جَاءَكُمُ الْمُؤْمِنَاتُ مُهَاجِرَاتٍ فَامْتَحِنُوهُنَّ} [الممتحنة 10] فَكَتَبَ إِلَيْهِ عُرْوَةُ أَنَّ رَسُولَ اللهِ ﷺ كَانَ صَالَحَ أَهْلَ الْحُدَيْبِيَةِ وَشَرَطَ لَهُمْ أَنَّهُ مَنْ أَتَاهُ بِغَيْرِ إِذْنِ وَلِيِّهِ رَدَّهُ عَلَيْهِمْ فَلَمَّا هَاجَرَ الْمُسْلِمَاتُ إِلَى رَسُولِ اللهِ ﷺ أَمَرَهُ اللهُ بِامْتِحَانِهِنَّ فَإِنْ كُنَّ جِئْنَ رَغْبَةً فِي الْإِسْلَامِ لَمْ يَرُدَّهُنَّ عَلَيْهِمْ قَالَ اللهُ ﷻ {فَإِنْ عَلِمْتُمُوهُنَّ مُؤْمِنَاتٍ فَلَا تَرْجِعُوهُنَّ إِلَى الْكُفَّارِ} [الممتحنة 10] فَحَبَسَ رَسُولُ اللهِ ﷺ النِّسَاءَ وَرَدَّ الرِّجَالَ