Ayesha reported,

The Messenger of Allah ﷺ used to test the believing women who emigrated by means of this verse, "Prophet, when believing women come to you pledging allegiance to you" [Mumtahanah 60:12].His uncle reported, "We were informed that when Allah commanded His Messenger ﷺ to return to the polytheists what they had spent on those of their wives who had emigrated, and we were also informed about Abu Basir," and he then mentioned the account in its entirety.

Bukhari 4182

Sahih

قال ابن شهاب وأخبرني عروة بن الزبير أن

عائشة رضي الله عنها زوج النبي ﷺ قالت

إن رسول الله ﷺ كان يمتحن من هاجر من المؤمنات بهذه الآية {يا أيها النبي إذا جاءك المؤمنات يبايعنك} وعن عمه قال بلغنا حين أمر الله رسوله ﷺ أن يرد إلى المشركين ما أنفقوا على من هاجر من أزواجهم وبلغنا أن أبا بصير فذكره بطوله

البخاري 4182صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Expedition of Hudaybiya
Numbering
Darussalam 4182
Bukhari 4182