Sahih Bukhari | Volume 5 | Hadith Number 741

Narrated by 'Aisha and Ibn 'Abbas
The Prophet stayed for ten years in Mecca with the Qur'an being revealed to him and he stayed in Medina for ten years.'