Sunan Ibn Majah, Book 5, Hadith 1125 (In-Book)

Usamah bin Zaid said: “I asked Tawus about performing voluntary prayer while traveling. Al-Hasan bin Muslim bin Yannaq was sitting with him and he said: ‘Tawus told me that he heard Ibn ‘Abbas say: “The Messenger of Allah enjoined prayer while a resident and prayer when one is traveling. We used to pray when we were residents both before and after (the obligatory prayer), and we used to pray both before and after (the obligatory prayer) when we were traveling.’”

حَدَّثَنَا أَبُو بَكْرِ بْنُ خَلاَّدٍ، حَدَّثَنَا وَكِيعٌ، حَدَّثَنَا أُسَامَةُ بْنُ زَيْدٍ، قَالَ سَأَلْتُ طَاوُسًا عَنِ السُّبْحَةِ، فِي السَّفَرِ - وَالْحَسَنُ بْنُ مُسْلِمِ بْنِ يَنَّاقٍ جَالِسٌ عِنْدَهُ - فَقَالَ حَدَّثَنِي طَاوُسٌ، أَنَّهُ سَمِعَ ابْنَ عَبَّاسٍ، يَقُولُ فَرَضَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ صَلاَةَ الْحَضَرِ وَصَلاَةَ السَّفَرِ فَكُنَّا نُصَلِّي فِي الْحَضَرِ قَبْلَهَا وَبَعْدَهَا وَكُنَّا نُصَلِّي فِي السَّفَرِ قَبْلَهَا وَبَعْدَهَا ‏.‏

sunnah.com