I accompanied the Messenger of Allah ﷺ, and he would not pray more than two rakahs while traveling. Abu Bakr, Umar, and Uthman did the same.
حدثنا مسدد قال حدثنا يحيى عن عيسى بن حفص بن عاصم قال حدثني أبي أنه سمع
صحبت رسول الله ﷺ فكان لا يزيد في السفر على ركعتين وأبا بكر وعمر وعثمان كذلك رضي الله عنهم