Mishkat al-Masabih 1344
وَعَنْ مُعَاذِ بْنِ جَبَلٍ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي غَزْوَةِ تَبُوكَ: إِذَا زَاغَتِ الشَّمْسُ قَبْلَ أَنْ يَرْتَحِلَ جَمَعَ بَيْنَ الظُّهْرِ وَالْعَصْرِ وَإِنِ ارْتَحَلَ قَبْلَ أَنْ تَزِيغَ الشَّمْسُ أَخَّرَ الظُّهْرَ حَتَّى يَنْزِلَ لِلْعَصْرِ وَفِي الْمَغْرِبِ مِثْلَ ذَلِكَ إِذَا غَابَتِ الشَّمْسُ قَبْلَ أَنْ يَرْتَحِلَ جَمَعَ بَيْنَ الْمَغْرِبِ وَالْعِشَاءِ وَإِنِ ارْتَحَلَ قَبْلَ أَنْ تَغِيبَ الشَّمْسُ أَخَّرَ الْمَغْرِبَ حَتَّى يَنْزِلَ لِلْعِشَاءِ ثُمَّ يَجْمَعُ بَيْنَهُمَا. رَوَاهُ أَبُو دَاوُد وَالتِّرْمِذِيّ
From Muʿadh ibn Jabal, who said: During the campaign of Tabuk, if the sun had passed the meridian before the Prophet ﷺ set off, he would combine Zuhr and ʿAsr; and if he set off before the sun passed the meridian, he would delay Zuhr until he stopped for ʿAsr. And for Maghrib likewise: if the sun set before he set off, he would combine Maghrib and ʿIshaʾ; and if he set off before the sun set, he would delay Maghrib until he stopped for ʿIshaʾ, then combine them. Reported by Abu Dawud and at-Tirmidhi.