It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that he was asked how the Messenger of Allah (peace and blessings be upon him) used to test the women (who came as emigrants). He (may Allah be pleased with him) said: "When a woman came to him (peace and blessings be upon him) intending to accept Islam, he (peace and blessings be upon him) would make her swear by Allah: 'By Allah, you have not left home because of enmity towards or aversion to your husband; by Allah, you have not left in search of worldly wealth and goods; by Allah, you have not left merely out of a desire to move from one land to another; rather, by Allah, you have left only for the love of Allah and His Messenger (peace and blessings be upon him).'" Imam al-Bazzar recorded this narration with the words: "When a woman came to the Prophet (peace and blessings be upon him), Sayyiduna Umar (may Allah be pleased with him) would make her swear by Allah" (and then the narrator mentioned the whole narration with the same meaning as before). The chain of this hadith is da'if (weak), because Abu Nasr's hearing from Sayyiduna Ibn Abbas (may Allah be pleased with them both) is not established, and the narrator named Qays is also weak.
Hadith Takhrij«هذا إسناد ضعيف، أبو نصر لم يسمع ابن عباس ، وقيس ضعيف» «(5858/1) أخرجه المعجم الكبير للطبراني برقم: 12668، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 9873، 9874» «(5858/2) أخرجه سنن الترمذي برقم: 3308، وأخرجه فتح الباري برقم: 4983، وأخرجه المعجم الكبير للطبراني برقم: 12668»