Abdullah bin Abbas reported,

The Prophet ﷺ stayed in Mecca for fifteen years. For seven of those years he would see light and hear a voice, and for eight years revelation came to him. Then he stayed in Medina for ten years.

Ahmad 2523

Sahih

حدثنا عفان حدثنا حماد بن سلمة أخبرنا عمار بن أبي عمار

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

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

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