[Machine] The Messenger of Allah ﷺ received the revelation when he was forty years old. He remained in Makkah for thirteen years after that, and then migrated to Al-Madinah. He lived in Al-Madinah for ten years, and the Messenger of Allah passed away when he was sixty-three years old.
«أُوحِيَ إِلَى رَسُولِ اللهِ ﷺ وَهُوَ ابْنُ أَرْبَعِينَ سَنَةً فَلَبِثَ بَعْدَ ذَلِكَ بِمَكَّةَ ثَلَاثَ عَشْرَةَ سَنَةً ثُمَّ هَاجَرَ إِلَى الْمَدِينَةِ فَكَانَ بِهَا عَشْرًا فَتُوُفِّيَ رَسُولُ اللهِ ﷺ وَهُوَ ابْنُ ثَلَاثٍ وَسِتِّينَ سَنَةً»