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.
و حدثنا قتيبة بن سعيد حدثنا المفضل يعني ابن فضالة عن عقيل عن ابن شهاب
كان رسول الله ﷺ إذا ارتحل قبل أن تزيغ الشمس أخر الظهر إلى وقت العصر ثم نزل فجمع بينهما فإن زاغت الشمس قبل أن يرتحل صلى الظهر ثم ركب