It is narrated from Abdur Rahman bin Humaid (may Allah have mercy on him) that he states: Umar bin Abdul Aziz (may Allah have mercy on him) asked his companions, "What have you heard regarding the stay of a Muhajir in Makkah?" Saib bin Yazid (may Allah be pleased with him) said: 'Ala bin Al-Hadrami (may Allah be pleased with him) narrated to me that the Messenger of Allah (ﷺ) said: "After performing the rites of Hajj, the Muhajir will stay for three days."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 367
Hadith Takhrijأخرجه البخاري: مناقب الأنصار، باب إقامة المهاجر بمكة بعد قضاء نسكه (3933)، ومسلم: الحج، باب جواز الإقامة بمكة للمهاجر منها بعد فراغ الحج ...... إلخ (1352).