(33) باب كَمْ أَقَامَ النَّبِيُّ صلى الله عليه وسلم بِمَكَّةَ وَالْمَدِينَةِ .
'Amr reported:
I said to 'Urwa: How long did Allah's Apostle - (ﷺ) stay in Mecca? He said: For ten years. I said: Ibn 'Abbas says (that he stayed in Mecca) for thirteen years.
Reference: Sahih Muslim 2350 a
In-book reference: Book 43, Hadith 152
USC-MSA web (English) reference(deprecated numbering scheme): Book 30, Hadith 5799