نَا مُحَمَّدُ بْنُ يَحْيَى ، ثنا عَبْدُ الصَّمَدِ ، ثنا شُعْبَةُ ، عَنْ عَاصِمِ بْنِ الشَّعْبِيِّ ، أَنَّ
ابْنَ عُمَرَ ، " كَانَ إِذَا كَانَ بِمَكَّةَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ ، إِلا أَنْ يَجْمَعَهُ إِمَامٌ فَيُصَلِّي بِصَلاتِهِ ، فَإِنْ جَمَعَهُ الإِمَامُ يُصَلِّي بِصَلاتِهِ "
Imam Sha'bi narrates that Sayyiduna Ibn Umar (may Allah be pleased with them both), when he was in Makkah Mukarramah, would perform two rak'ahs of prayer. However, if he prayed with the Imam, then he would perform the complete prayer like the Imam, (that is) if he prayed in congregation with the Imam, he would pray as the Imam prayed.