Ayesha and Abdullah bin Abbas reported,

The Prophet ﷺ remained in Mecca for ten years during which the Quran was being revealed to him, and in Medina for ten years.

Bukhari 4464-4465

Sahih

حدثنا أبو نعيم حدثنا شيبان عن يحيى عن أبي سلمة

عن عائشة وابن عباس رضي الله عنهم

أن النبي ﷺ لبث بمكة عشر سنين ينزل عليه القرآن وبالمدينة عشرا

البخاري 4464-4465صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Death of the Prophet ﷺ
Numbering
Darussalam 4464-4465
Bukhari4464 4464-4465