Hadithcore
Sahih al-Bukhari, 4182
sahih

Aisha said, "Allah's Messenger (ﷺ) used to test all the believing women who migrated to him, with the following Verse:

-- "O Prophet! When the believing Women come to you, to give the pledge of allegiance to you." (60:12) `Urwa's uncle said, "We were informed when Allah ordered His Messenger to return to the pagans what they had given to their wives who lately migrated (to Medina) and we were informed that Abu Basir..." relating the whole narration.

قَالَ ابْنُ شِهَابٍ وَأَخْبَرَنِي عُرْوَةُ بْنُ الزُّبَيْرِ، أَنَّ عَائِشَةَ ـ رضى الله عنها ـ زَوْجَ النَّبِيِّ صلى الله عليه وسلم قَالَتْ إِنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يَمْتَحِنُ مَنْ هَاجَرَ مِنَ الْمُؤْمِنَاتِ بِهَذِهِ الآيَةِ ‏{‏يَا أَيُّهَا النَّبِيُّ إِذَا جَاءَكَ الْمُؤْمِنَاتُ‏}‏‏.‏ وَعَنْ عَمِّهِ قَالَ بَلَغَنَا حِينَ أَمَرَ اللَّهُ رَسُولَهُ صلى الله عليه وسلم أَنْ يَرُدَّ إِلَى الْمُشْرِكِينَ مَا أَنْفَقُوا عَلَى مَنْ هَاجَرَ مِنْ أَزْوَاجِهِمْ، وَبَلَغَنَا أَنَّ أَبَا بَصِيرٍ‏.‏ فَذَكَرَهُ بِطُولِهِ‏.‏

References2 variants
In-Book Reference
Book 64, Hadith 222
USC-MSA web (English) reference
Vol. 5, Book 59, Hadith 496 (deprecated numbering scheme)