(33) باب كَمْ أَقَامَ النَّبِيُّ صلى الله عليه وسلم بِمَكَّةَ وَالْمَدِينَةِ .
Ibn 'Abbas reported that Allah's Messenger (ﷺ) stayed in Mecca for thirteen years (after he had received revelation) and stayed in Medina for ten years, and he was sixty-three when he died.
Reference: Sahih Muslim 2351 b
In-book reference: Book 43, Hadith 155
USC-MSA web (English) reference(deprecated numbering scheme): Book 30, Hadith 5802