"The Messenger of Allah ﷺ received Revelation when he was forty years old. So he stayed in Makkah for thirteen years and in Al-Madinah for ten. And he died when he was sixty-three years old." (Using translation from Tirmidhī 3621)
أُنْزِلَ عَلَى النَّبِيِّ ﷺ وَهُوَ ابْنُ أَرْبَعِينَ وَكَانَ بِمَكَّةَ ثَلاثَ عَشْرَةَ وَبِالْمَدِينَةِ عَشْرًا فَمَاتَ وَهُوَ ابْنُ ثَلاثٍ وَسِتِّينَ