´It was narrated that Qatadah said:` "I heard Muas- bin Salamah-say: 'I said to Ibn 'Abbas: How should I pray in Makkah if I do not pray in congregation? He said: Two rak'ahs, the sunnah of Abu Al-Qasim.'"
Explanation & Benefits
Hafiz Muhammad Ameen
1444. Commentary: The meaning is that if a traveler performs the prayer in congregation, then obviously he will follow the imam. Since the imam of the Haram is a resident (muqim), he will perform four rak‘ahs. However, if the traveler misses the congregation, then he will perform two rak‘ahs, provided that his stay is less than the period of residence (muddat al-iqamah). If he intends to stay longer than the period of residence, then he will perform the full prayer. There is no difference in this ruling between Makkah and elsewhere. And Allah knows best.
Source: Sunan Nasa'i: Translation and Benefits by Shaykh Hafiz Muhammad Amin Hafizullah, Page: 1444