I heard ʿUmar bin ʿAbdul-Aziz asking As-Sa'ib, the nephew of An-Nimr. "What have you heard about residing in Mecca?" The other said, "I heard Al-Ala bin Al-Hadrami saying, Messenger of Allah ﷺ said: An Emigrant is allowed to stay in Mecca for three days after departing from Mina (i.e. after performing all the ceremonies of Hajj)" (Using translation from Bukhārī 3933)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ «لِلْمُهَاجِرِ ثَلَاثًا بَعْدَ الصَّدَرِ»