(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 it is some years above ten. He ('Urwa) sought forgiveness for him and said: His statement is based on the verse of a poet.
Reference: Sahih Muslim 2350 b
In-book reference: Book 43, Hadith 153
USC-MSA web (English) reference(deprecated numbering scheme): Book 30, Hadith 5800