[Machine] Aisha, the wife of the Prophet ﷺ , informed him that the Messenger of Allah ﷺ used to test the women who migrated to him with this verse: "O Prophet, when the believing women come to you pledging to you that they will not associate anything with Allah, or steal, or commit unlawful sexual intercourse, or kill their children, or bring forth a slander they have fabricated between their arms and legs, or disobey you in what is right, then accept their pledge and ask Allah to forgive them. Indeed, Allah is Forgiving and Merciful" (Quran 60:12).
Urwah ibn Az-Zubayr said that Aisha asked the women who accepted this condition from among the believers, and the Messenger of Allah ﷺ said to her, "I have already pledged my allegiance to you and, by Allah, my hand has never touched the hand of a woman in allegiance. I have only pledged allegiance to them by saying, 'I have pledged allegiance to you upon that.'"
Please note that the translation may slightly vary depending on the interpretation, as translations may differ in wording but convey the same meaning.
أَنَّ عَائِشَةَ زَوْجَ النَّبِيِّ ﷺ أَخْبَرَتْهُ أَنَّ رَسُولَ اللهِ ﷺ كَانَ يَمْتَحِنُ مَنْ هَاجَرَ إِلَيْهِ مِنَ الْمُؤْمِنَاتِ بِهَذِهِ الْآيَةِ يًقُوْلُ اللهِ تَعَالَى {يَا أَيُّهَا النَّبِيُّ إِذَا جَاءَكَ الْمُؤْمِنَاتُ يُبَايِعْنَكَ عَلَى أَنْ لَا يُشْرِكْنَ بِاللهِ شَيْئًا وَلَا يَسْرِقْنَ وَلَا يَزْنِينَ وَلَا يَقْتُلْنَ أَوْلَادَهُنَّ وَلَا يَأْتِينَ بِبُهْتَانٍ يَفْتَرِينَهُ بَيْنَ أَيْدِيهِنَّ وَأَرْجُلِهِنَّ وَلَا يَعْصِينَكَ فِي مَعْرُوفٍ فَبَايِعْهُنَّ وَاسْتَغْفِرْ لَهُنَّ اللهَ إِنَّ اللهَ غَفُورٌ رَحِيمٌ} [الممتحنة 12] قَالَ عُرْوَةُ بْنُ الزُّبَيْرِ قَالَتْ عَائِشَةُ فَمَنْ أَقَرَّ بِهَذَا الشَّرْطِ مِنَ الْمُؤْمِنَاتِ قَالَ لَهَا رَسُولُ اللهِ ﷺ قَدْ بَايَعْتُكِ كَلَامًا وَلَاوَاللهِ مَا مَسَّتْ يَدُهُ يَدَ امْرَأَةٍ قَطُّ فِي الْمُبَايَعَةِ مَا بَايَعَهُنَّ إِلَّا بِقَوْلِهِ قَدْ بَايَعْتُكِ عَلَى ذَلِكَ