The Prophet ﷺ used to combine the Maghrib and Isha prayers while traveling. Ali bin al-Mubarak and Harb followed him in this narration, from Yahya, from Hafs, from Anas, that the Prophet ﷺ combined them.
وعن حسين عن يحيى بن أبي كثير عن حفص بن عبيد الله بن أنس
كان النبي ﷺ يجمع بين صلاة المغرب والعشاء في السفر وتابعه علي بن المبارك وحرب عن يحيى عن حفص عن أنس جمع النبي ﷺ