[Machine] The Prophet ﷺ stayed in Mecca for ten years, during which the Quran was revealed to him, and in Medina for ten years, during which the Quran was also revealed to him.
النَّبِيَّ ﷺ لَبِثَ بِمَكَّةَ عَشْرَ سِنِينَ يَنْزِلُ عَلَيْهِ الْقُرْآنُ وَبِالْمَدِينَةِ عَشْرَ سِنِينَ يَنْزِلُ عَلَيْهِ