Hadith 5838
وَعَنْهُ قَالَ: أَقَامَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِمَكَّةَ خَمْسَ عَشْرَةَ سَنَةً يَسْمَعُ الصَّوْتَ وَيَرَى الضَّوْءَ سَبْعَ سِنِينَ وَلَا يَرَى شَيْئًا وَثَمَانِ سِنِينَ يُوحَى إِلَيْهِ وَأَقَامَ بِالْمَدِينَةِ عَشْرًا وَتُوُفِّيَ وَهُوَ ابْنُ خَمْسٍ وَسِتِّينَ. مُتَّفق عَلَيْهِ
He said God's messenger stayed in Mecca fifteen years hearing the voice and seeing the light for seven years, but seeing nothing along with it, and eight years during which revelations were given to him. He stayed in Medina ten years and died at the age of sixty-five. (Bukhari and Muslim.)