Ibn ‘Umar said that on a journey God’s Messenger would pray on his riding beast in whatever direction it turned, making a sign with his head* in prayer during the night, but not in the obligatory prayers; and he would observe a witr on his riding beast.
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.
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."