They (the Companions) proceeded on the expedition of Tabuk along with the Messenger of Allah ﷺ. He combined the noon and afternoon prayers and the sunset and night prayers. One day he delayed the prayer and came out (of his dwelling) and combined the noon and the afternoon prayers. He then went it and then came out and combined the sunset and the night prayers.
أَنَّ مُعَاذَ بْنَ جَبَلٍ أَخْبَرَهُمْ أَنَّهُمْ خَرَجُوا مَعَ رَسُولِ اللَّهِ ﷺ فِي غَزْوَةِ تَبُوكَ فَكَانَ رَسُولُ اللَّهِ ﷺ يَجْمَعُ بَيْنَ الظُّهْرِ وَالْعَصْرِ وَالْمَغْرِبِ وَالْعِشَاءِ فَأَخَّرَ الصَّلاَةَ يَوْمًا ثُمَّ خَرَجَ فَصَلَّى الظُّهْرَ وَالْعَصْرَ جَمِيعًا ثُمَّ دَخَلَ ثُمَّ خَرَجَ فَصَلَّى الْمَغْرِبَ وَالْعِشَاءَ جَمِيعًا