The Prophet (peace and blessings be upon him) said:
"The matter of Hijrah has passed for its people. I take his pledge of allegiance on Islam and jihad."
Hadith Referenceصحیح الجامع الصغیر / حرف الميم / 5873
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[ق] عن مجاشع بن مسعود. مختصر مسلم ١١٨٥.