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. He lived in emigration for ten years and died at the age of sixty-three.
بعث رسول الله ﷺ لأربعين سنة، فمكث بمكة ثلاث عشرة سنة يوحى إليه، ثم أمر بالهجرة، فهاجر عشر سنين ومات وهو ابن ثلاث وستين.
Bukhari narrated it in the Book of Virtues (3902) from Matar bin Fadl, who said, Rawh narrated to us, Hisham narrated to us, Ikrima narrated to us, from Ibn Abbas, and he mentioned it. Muslim also narrated it in the Book of Virtues (2351) through another route from Ibn Abbas.