Muaz bin Jabal reported,

During the expedition of Tabuk, when the Prophet ﷺ set out before the sun had passed its zenith, he would delay the noon prayer until he could combine it with the afternoon prayer, performing them together. When he set out after the sun had passed its zenith, he would pray the noon and afternoon prayers together, then continue his journey.When he set out before sunset, he would delay the sunset prayer until he could pray it together with the night prayer. When he set out after sunset, he would advance the night prayer and pray it together with the sunset prayer.

Abu Dawud 1220

Sahih

حدثنا قتيبة بن سعيد أخبرنا الليث عن يزيد بن أبي حبيب عن أبي الطفيل عامر بن واثلة

عن معاذ بن جبل

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

أبو داود 1220صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer while traveling
Chapter
Combining two prayers
Numbering
Darussalam 1220
Abu Dawud 1220