Abdullah bin Abbas reported,

The Messenger of Allah ﷺ was sent as a prophet at the age of forty. He remained in Mecca for thirteen years receiving revelation, then he was commanded to emigrate, so he lived as an emigrant for ten years. He died at the age of sixty-three.

Azami 8554

Sahih

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

بعث رسول الله ﷺ لأربعين سنة، فمكث بمكة ثلاث عشرة سنة يوحى إليه، ثم أمر بالهجرة فهاجر عشر سنين، ومات وهو ابن ثلاث وستين.

الأعظمي 8554صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Mission of the Prophet ﷺ and his life in Makkah
Section
When the Prophet ﷺ reached forty years of age, Allah chose him for prophethood and messengership
Numbering
Jami al-Kamil 8554 (2nd edition)
Azami 8554