Sahih al-Bukhari, Book 18, Hadith 22 (Bukhari 1070)

Narrated Ibn `Umar:

I accompanied Allah's Messenger (ﷺ) and he never offered more than two rak`at during the journey. Abu Bakr, `Umar and `Uthman used to do the same.