Umayyah bin Khalid bin Asid (may Allah have mercy on him) said that he asked Sayyiduna Abdullah bin Umar (may Allah be pleased with them both). He said: "I said to him: What is your view about shortening the prayer while travelling? We do not find it in the Book of Allah; we only find mention of the prayer of the resident." Umayyah said that Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) said: "O my nephew, Allah Almighty sent Muhammad (peace and blessings be upon him) to us while we knew nothing; we only do what we saw the Messenger of Allah (peace and blessings be upon him) doing. And shortening the prayer while travelling is a Sunnah that the Messenger of Allah (peace and blessings be upon him) established."
Related hadith on this topic