Abdullah bin Abbas reported,

The Messenger of Allah ﷺ stayed in Mecca for fifteen years. For eight years, or seven, he would see light and hear a voice, and for eight, or seven, revelation came to him. He then stayed in Medina for ten years.

Ahmad 2680

Sahih

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

عن ابن عباس

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

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