Hadithcore
Sahih Muslim, 688 a
sahih

Musa b. Salama Hudhali said:

I asked Ibn 'Abbas: How should I say prayer when I am in Mecca, and when I do not pray along with the Imam? He said: Two rak'ahs (of prayer) is the Sunnah of Abu'l-Qasim (ﷺ).

حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، وَابْنُ، بَشَّارٍ قَالاَ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، قَالَ سَمِعْتُ قَتَادَةَ، يُحَدِّثُ عَنْ مُوسَى بْنِ سَلَمَةَ الْهُذَلِيِّ، قَالَ سَأَلْتُ ابْنَ عَبَّاسٍ كَيْفَ أُصَلِّي إِذَا كُنْتُ بِمَكَّةَ إِذَا لَمْ أُصَلِّ مَعَ الإِمَامِ ‏.‏ فَقَالَ رَكْعَتَيْنِ سُنَّةَ أَبِي الْقَاسِمِ صلى الله عليه وسلم ‏.‏

References2 variants
In-Book Reference
Book 6, Hadith 8
USC-MSA web (English) reference
Book 4, Hadith 1465 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Companions (may Allah be pleased with them) were the most keen on following the Prophet's example in everything, because in the Prophet's Sunnah lies guidance and the right course; whoever follows it will be saved, and whoever deviates from it will be ruined. In this Hadīth, the Tābi‘i Mūsa ibn Salamah al-Hudhali asks Ibn ‘Abbās (may Allah be pleased with him): "How should I pray if I am in Makkah and did not pray with the Imām?" This is because the Imām offers the prayer completely. So, if a traveler prays with him, he will also perform it completely. Yet, what should be the case if a traveler comes to Makkah and does not pray with the Imām? In response to him, Ibn ‘Abbās (may Allah be pleased with him) said that he should pray it as two Rak‘ahs, in the shortened form, not as a complete prayer. Clarifying the reason for that, he said that this is the Sunnah of Abu al-Qāsim, the nickname of the Prophet (may Allah's peace and blessings be upon him). Indeed, the Sunnah as regards travelers is to shorten the prayers. Allah Almighty alleviated things for travelers and facilitated for them the Shar‘i rulings regarding prayer. So, he may shorten the four-Rak‘ah prayers (Zhuhr, ‘Asr, and ‘Ishā’) to two Rak‘ahs..
Related hadiths9
Compare isnād across 9 related chains →