كتاب الحج
15  
The Book of Pilgrimage
(81)
Chapter: It is permissible for the one who emigrated from Makkah to stay there for three days after completing Hajj and 'Umrah, and no more than that
(81)
باب جَوَازِ الإِقَامَةِ بِمَكَّةَ لِلْمُهَاجِرِ مِنْهَا بَعْدَ فَرَاغِ الْحَجِّ وَالْعُمْرَةِ ثَلاَثَةَ أَيَّامٍ بِلاَ زِيَادَةٍ
Sahih Muslim 1352 a

Al-'Ali' b. al-Hadrami reported Allah's Messenger (may peace he upon as saying:

For a Mahijir, it is only three (days') stay at Mecca, after completing (the Hajj or 'Umra) that is allowed, and it seemed as if he was saying that he should not (stay) beyond this (period).
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ بْنِ قَعْنَبٍ، حَدَّثَنَا سُلَيْمَانُ، - يَعْنِي ابْنَ بِلاَلٍ - عَنْ عَبْدِ الرَّحْمَنِ بْنِ حُمَيْدٍ، أَنَّهُ سَمِعَ عُمَرَ بْنَ عَبْدِ الْعَزِيزِ، يَسْأَلُ السَّائِبَ بْنَ يَزِيدَ يَقُولُ هَلْ سَمِعْتَ فِي الإِقَامَةِ، بِمَكَّةَ شَيْئًا فَقَالَ السَّائِبُ سَمِعْتُ الْعَلاَءَ بْنَ الْحَضْرَمِيِّ، يَقُولُ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏ "‏ لِلْمُهَاجِرِ إِقَامَةُ ثَلاَثٍ بَعْدَ الصَّدَرِ بِمَكَّةَ ‏"‏ ‏.‏ كَأَنَّهُ يَقُولُ لاَ يَزِيدُ عَلَيْهَا ‏.‏
Reference : Sahih Muslim 1352a
In-book reference : Book 15, Hadith 501
USC-MSA web (English) reference : Book 7, Hadith 3134
  (deprecated numbering scheme)