Sahih Muslim 3298
The Book of Pilgrimage
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، أَخْبَرَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ حُمَيْدٍ، قَالَ سَمِعْتُ عُمَرَ بْنَ عَبْدِ الْعَزِيزِ، يَقُولُ لِجُلَسَائِهِ مَا سَمِعْتُمْ فِي، سُكْنَى مَكَّةَ فَقَالَ السَّائِبُ بْنُ يَزِيدَ سَمِعْتُ الْعَلاَءَ، - أَوْ قَالَ الْعَلاَءَ بْنَ الْحَضْرَمِيِّ - قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " يُقِيمُ الْمُهَاجِرُ بِمَكَّةَ بَعْدَ قَضَاءِ نُسُكِهِ ثَلاَثًا " .
Al-'Ala' b. al-Hadrami reported Allah's Messenger (ﷺ) as saying:The Muhijir should stay at Mecca after performing the rituals (of Hajj) but for three (days) only
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.