Hadith #510
Arabic Text
حَدَّثَنَا حَسَنٌ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ عَمَّارِ بْنِ أَبِي عَمَّارٍ عَنِ ابْنِ عَبَّاسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَقَامَ بِمَكَّةَ خَمْسَ عَشْرَةَ سَنَةً ثَمَانِ سِنِينَ أَوْ سَبْعًا يَرَى الضَّوْءَ وَيَسْمَعُ الصَّوْتَ وَثَمَانِيًا أَوْ سَبْعًا يُوحَى إِلَيْهِ وَأَقَامَ بِالْمَدِينَةِ عَشْرًا
English Translation
Hasan narrated to us, Hammad ibn Salamah narrated to us, from 'Ammar ibn Abi 'Ammar, from Ibn 'Abbas (رضي الله عنهما) that the Messenger of Allah ﷺ stayed in Makkah for fifteen years: for eight years he would hear voices and see lights, and for seven years revelation came to him. And he stayed in Madinah for ten years.
Quran References
Reference: Musnad Ahmad, Book 9, Hadith 510
Sunnah.com ref: Musnad Ahmad 2548
Islam.wiki ID: IWH-38938