[Machine] The Prophet ﷺ stayed in Makkah for fifteen years, seven of which he could see the light and hear the sound. He stayed in Madinah for ten years.
«أَقَامَ النَّبِيُّ ﷺ خَمْسَ عَشْرَةَ سَنَةً بِمَكَّةَ سَبْعًا وَثَمَانِيًا يَرَى الضَّوْءَ وَيَسْمَعُ الصَّوْتَ وَأَقَامَ بِالْمَدِينَةِ عَشْرًا» على شرط مسلم