Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) says: "Whoever emigrates seeking something, that is what he gets." And he related: A man emigrated in order to marry a woman named Umm Qays, and so he became known as "the Emigrant of Umm Qays."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 8508