Anas bin Malik reported,

When the Messenger of Allah ﷺ set out on a journey before the sun had passed its zenith, he would delay the noon prayer until the time of the afternoon prayer, then he would stop and combine the two. But if the sun passed its zenith before he set out, he would pray the noon prayer first and then ride on.

Muslim 1625

Sahih

و حدثنا قتيبة بن سعيد حدثنا المفضل يعني ابن فضالة عن عقيل عن ابن شهاب

عن أنس بن مالك قال

كان رسول الله ﷺ إذا ارتحل قبل أن تزيغ الشمس أخر الظهر إلى وقت العصر ثم نزل فجمع بينهما فإن زاغت الشمس قبل أن يرتحل صلى الظهر ثم ركب

مسلم 1625صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Travelers' prayer and its shortening
Chapter
Permissibility of combining two prayers while traveling
Numbering
Darussalam 1625
Muslim 1625