Abu Nadrah narrates from Sayyiduna Imran bin Husayn (may Allah be pleased with him) that he said: I went on a military expedition with the Prophet (peace and blessings be upon him), and I was also present at the Conquest of Makkah. He (peace and blessings be upon him) stayed in Makkah for eighteen nights, praying only two rak'ahs (for each prayer). He (peace and blessings be upon him) said: "O people of the town! Pray four rak'ahs, for we are travellers."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5499
Zayd bin Aslam narrates from his father that he was with Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) when he led the people of Makkah in prayer during the days of Hajj. After finishing two rak'ahs of prayer, he said: O people of Makkah! Complete your prayer, for we are travellers.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5500
Safwan bin Abdullah bin Safwan said: Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) came to visit Abdullah bin Safwan in his illness. He led us in two rak'ahs and ended the prayer with the salam; then we completed the rest of our prayer.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5501