Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:12945ʿAbd al-Aʿlá b. ʿAbd al-Aʿlá > Yaḥyá b. Abū Isḥāq > Anas b. Mālik

“We went out with the Messenger of Allah ﷺ from Al-Madinah to Makkah, during which time we shortened our prayer to two Rak’ah, until we came back.” I asked: “How long did he stay in Makkah?” He said: “Ten (days).” (Using translation from Ibn Mājah 1077)   

أحمد:١٢٩٤٥حَدَّثَنَا عَبْدُ الْأَعْلَى بْنُ عَبْدِ الْأَعْلَى حَدَّثَنَا يَحْيَى بْنُ أَبِي إِسْحَاقَ عَنِ أَنَسِ بْنِ مَالِكٍ قَالَ

خَرَجْنَا مَعَ رَسُولِ اللهِ ﷺ مِنَ الْمَدِينَةِ فَجَعَلَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى رَجَعَ قَالَ يَحْيَى فَقُلْتُ لِأَنَسٍ كَمْ أَقَامَ؟ قَالَ عَشْرًا  


See similar narrations below:

Collected by Bukhārī, Muslim, Ibn Mājah
bukhari:1081Abū Maʿmar > ʿAbd al-Wārith > Yaḥyá b. Abū Isḥāq > Anas

I heard Anas saying, "We traveled with the Prophet ﷺ from Medina to Mecca and offered two rakʿat (for every prayer) till we returned to Medina." I said, "Did you stay for a while in Mecca?" He replied, "We stayed in Mecca for ten days."  

البخاري:١٠٨١حَدَّثَنَا أَبُو مَعْمَرٍ قَالَ حَدَّثَنَا عَبْدُ الْوَارِثِ قَالَ حَدَّثَنَا يَحْيَى بْنُ أَبِي إِسْحَاقَ قَالَ

سَمِعْتُ أَنَسًا يَقُولُ خَرَجْنَا مَعَ النَّبِيِّ ﷺ مِنَ الْمَدِينَةِ إِلَى مَكَّةَ فَكَانَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى رَجَعْنَا إِلَى الْمَدِينَةِ قُلْتُ أَقَمْتُمْ بِمَكَّةَ شَيْئًا قَالَ أَقَمْنَا بِهَا عَشْرًا  

muslim:693aYaḥyá b. Yaḥyá al-Tamīmī > Hushaym > Yaḥyá b. Abū Isḥāq > Anas b. Mālik

We went out from Medina to Mecca with the Messenger of Allah ﷺ and he prayed two rak'ahs at each time of prayer till we returned to Medina. I said: For how long did he stay in Mecca? He said: (For) ten (days).  

مسلم:٦٩٣aحَدَّثَنَا يَحْيَى بْنُ يَحْيَى التَّمِيمِيُّ أَخْبَرَنَا هُشَيْمٌ عَنْ يَحْيَى بْنِ أَبِي إِسْحَاقَ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

خَرَجْنَا مَعَ رَسُولِ اللَّهِ ﷺ مِنَ الْمَدِينَةِ إِلَى مَكَّةَ فَصَلَّى رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى رَجَعَ قُلْتُ كَمْ أَقَامَ بِمَكَّةَ قَالَ عَشْرًا  

ibnmajah:1077Naṣr b. ʿAlī al-Jahḍamī > Yazīd b. Zurayʿ And ʿAbd al-Aʿlá > Yaḥyá b. Abū Isḥāq > Anas

“We went out with the Messenger of Allah ﷺ from Al-Madinah to Makkah, during which time we shortened our prayer to two Rak’ah, until we came back.” I asked: “How long did he stay in Makkah?” He said: “Ten (days).”  

ابن ماجة:١٠٧٧حَدَّثَنَا نَصْرُ بْنُ عَلِيٍّ الْجَهْضَمِيُّ حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ وَعَبْدُ الأَعْلَى قَالاَ حَدَّثَنَا يَحْيَى بْنُ أَبِي إِسْحَاقَ عَنْ أَنَسٍ قَالَ

خَرَجْنَا مَعَ رَسُولِ اللَّهِ ﷺ مِنَ الْمَدِينَةِ إِلَى مَكَّةَ فَصَلَّى رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى رَجَعْنَا قُلْتُ كَمْ أَقَامَ بِمَكَّةَ؟ قَالَ عَشْرًا