كتاب الفضائل
43  
The Book of Virtues
(33)
Chapter: How Long Did The Prophet ft Stay In Makkah And Al-Madinah?
(33)
باب كَمْ أَقَامَ النَّبِيُّ صلى الله عليه وسلم بِمَكَّةَ وَالْمَدِينَةِ ‏.‏
Sahih Muslim 2351 a

Ibn 'Abbas reported that Allah's Messenger (ﷺ) stayed in Mecca for thirteen years and he died when he had attained the age of sixty three years.

حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، وَهَارُونُ بْنُ عَبْدِ اللَّهِ، عَنْ رَوْحِ بْنِ عُبَادَةَ، حَدَّثَنَا زَكَرِيَّاءُ بْنُ إِسْحَاقَ، عَنْ عَمْرِو بْنِ دِينَارٍ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم مَكَثَ بِمَكَّةَ ثَلاَثَ عَشْرَةَ وَتُوُفِّيَ وَهُوَ ابْنُ ثَلاَثٍ وَسِتِّينَ ‏.‏
Reference : Sahih Muslim 2351a
In-book reference : Book 43, Hadith 154
USC-MSA web (English) reference : Book 30, Hadith 5801
  (deprecated numbering scheme)