Abdullah bin Abbas reported,

The Messenger of Allah ﷺ remained in Mecca for thirteen years receiving revelation, then in Medina for ten years, and he died at the age of sixty-three.

Muslim 6097

Sahih

و حدثنا ابن أبي عمر حدثنا بشر بن السري حدثنا حماد عن أبي جمرة الضبعي

عن ابن عباس قال

أقام رسول الله ﷺ بمكة ثلاث عشرة سنة يوحى إليه وبالمدينة عشرا ومات وهو ابن ثلاث وستين سنة

مسلم 6097صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues
Chapter
How long the Prophet ﷺ stayed in Makkah and Madinah
Numbering
Darussalam 6097
Muslim 6097