I accompanied Allah's Messenger (ﷺ) and he never offered more than two rak`at during the…

Sahih al-Bukhari Book 18 Hadith 22

Sahih al-Bukhari #1102

Shortening the Prayers (At-Taqseer) 18:22

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.

Chapter: Whoever did not offer the Nawafil before and after the (compulsory) Salat during a journey

Grade: Sahih