I accompanied Ibn ‘Umar on the road to Mecca and he led us in two rak'as at the noon prayer, then went to the place where he had alighted and sat down. Seeing some people standing he asked what they were doing, and I replied that they were engaged in glorifying God. He said, “If I had done so I would have perfected my prayer. I accompanied God's Messenger, and he prayed two rak'as and nothing more while on a journey. I also accompanied Abu Bakr, ‘Umar and ‘Uthman, and they did the same."
Ibn ‘Abbas said the Prophet made a journey during which he had a stop of nineteen days, and he prayed two rak'as at each time of prayer. Ibn ‘Abbas said, “So when we are stopping nineteen days between here and Mecca we pray two rak'as each time, but when we stop more than that we pray four.”
Ibn ‘Abbas said that God’s Messenger used to combine the noon and the afternoon prayer while travelling, and also to combine the sunset and the evening prayer.
We went out from Medina to Mecca with God’s Messenger and he prayed two rak'as at each time of prayer till we returned to Medina. On being asked whether they had stayed any length of time in Mecca, he replied that they had stayed ten days.