Abd al-Rahman bin Humayd (may Allah have mercy on him) said: I heard Umar bin Abd al-Aziz (may Allah have mercy on him) asking those sitting with him: "Have you heard anything about residing in Makkah?" Al-Sa'ib bin Yazid (may Allah be pleased with him) said: I heard al-Ala' (may Allah be pleased with him) - or he said: al-Ala' bin al-Hadrami (may Allah be pleased with him) - say that the Messenger of Allah (peace and blessings be upon him) said: "After performing the rites, the Muhajir may stay in Makkah for three days."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5453