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 advance the afternoon prayer to join it with the noon prayer, performing both together, and then continue his journey.Likewise, when he set out before sunset, he would delay the sunset prayer until he could perform it with the night prayer. When he set out after sunset, he would advance the night prayer and perform it together with the sunset prayer.

Tirmidhi 553

Sahih

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

عن معاذ بن جبل

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

الترمذي 553صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Travel
Chapter
Combining two prayers
Numbering
Darussalam 553
Tirmidhi 553