Sahih Muslim, Book 15, Hadith 503 (Muslim 3268)

Al-'Ala' b. al-Hadrami reported Allah's Messenger (ﷺ) as saying:

It is only for three nights that a Muhajir should stay at Mecca after the completion of the rituals of Hajj.