Ismail bin Abdul-Rahman reported,

I accompanied Ibn Umar to al-Hima. When the sun set, I hesitated to remind him of the prayer. He continued traveling until the whiteness of the horizon faded and the darkness of evening had set in. Then he dismounted and prayed Maghrib, three units, followed by two more units after it.He then said, "This is how I saw the Messenger of Allah ﷺ do it."

Nasai 592

Sahih

أخبرني إسحق بن إبراهيم قال أنبأنا سفيان عن ابن أبي نجيح

عن إسمعيل بن عبد الرحمن شيخ من قريش قال

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

النسائي 592صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Times of prayer
Chapter
Time at which a traveler combines Maghrib and Isha
Numbering
Darussalam 592
Nasai 592