Abdullah bin Abbas reported,

The Prophet ﷺ stayed in Mecca for fifteen years. For seven of those years he would see light and brightness and hear a voice, and for eight years he received revelation. He then stayed in Medina for ten years.

Ahmad 2846

Sahih

حدثنا أبو كامل حدثنا حماد أخبرنا عمار بن أبي عمار

عن ابن عباس قال

أقام النبي ﷺ بمكة خمس عشرة سنة سبع سنين يرى الضوء والنور ويسمع الصوت وثماني سنين يوحى إليه وأقام بالمدينة عشرا

أحمد 2846صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 2846
Ahmad 2846