Bukhari 4464
Sahih al-Bukhari, 4464
Sahih (authentic)by the collection
حَدَّثَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا شَيْبَانُ، عَنْ يَحْيَى، عَنْ أَبِي سَلَمَةَ، عَنْ عَائِشَةَ، وَابْنِ، عَبَّاسٍ رضى الله عنهم أَنَّ النَّبِيَّ صلى الله عليه وسلم لَبِثَ بِمَكَّةَ عَشْرَ سِنِينَ يُنْزَلُ عَلَيْهِ الْقُرْآنُ، وَبِالْمَدِينَةِ عَشْرًا.
Narrated 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 yearsRapporté par Aisha et Ibn `Abbas : Le Prophète (ﷺ) est resté dix ans à La Mecque pendant que le Coran lui était révélé, puis il a vécu dix ans à MédineGrades given by scholars
Sahih collection: its hadiths are held authentic by the compiler.
Source: fawazahmed0/hadith-api (public domain).