Sahih al-Bukhari 4978
Book 65: Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh)) · Narrated by `Aisha and Ibn `Abbas
Arabic
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى، عَنْ شَيْبَانَ، عَنْ يَحْيَى، عَنْ أَبِي سَلَمَةَ، قَالَ أَخْبَرَتْنِي عَائِشَةُ، وَابْنُ، عَبَّاسٍ رضى الله عنهم قَالاَ لَبِثَ النَّبِيُّ صلى الله عليه وسلم بِمَكَّةَ عَشْرَ سِنِينَ يُنْزَلُ عَلَيْهِ الْقُرْآنُ وَبِالْمَدِينَةِ عَشْرَ سِنِينَ
English translation
Narrated `Aisha and Ibn `Abbas:The Prophet (ﷺ) remained in Mecca for ten years, during which the Qur'an used to be revealed to him; and he stayed in Medina for ten years
Reference: Sahih al-Bukhari 4978, Book of Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh)). English translation by Dr. Muhammad Muhsin Khan.