Mujashi bin Masud reported,

I came to the Prophet ﷺ to pledge allegiance to him on the basis of emigration. He said, "Emigration has passed with its people, but the pledge is on Islam, jihad, and goodness."

Muslim 4826

Sahih

حدثنا محمد بن الصباح أبو جعفر حدثنا إسمعيل بن زكرياء عن عاصم الأحول عن أبي عثمان النهدي

حدثني مجاشع بن مسعود السلمي قال

أتيت النبي ﷺ أبايعه على الهجرة فقال إن الهجرة قد مضت لأهلها ولكن على الإسلام والجهاد والخير

مسلم 4826صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Leadership
Chapter
Pledging allegiance after the conquest of Makkah for Islam, jihad, and good, and the explanation of "There is no emigration after the conquest"
Numbering
Darussalam 4826
Muslim 4826