It is narrated from Abdullah bin Umar (may Allah be pleased with them both) that he states: When the Prophet ﷺ needed to hasten during a journey, he ﷺ would combine Maghrib and Isha prayers.
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 363
Hadith Takhrijأخرجه البخاري: التقصير، باب الجمع في السفر بين المغرب والعشاء، رقم: 1106 - ومسلم: صلاة المسافرين، باب جواز الجمع بين الصلاتين في السفر (703).