Umar bin Khattab reported,

On the day of the Battle of the Trench, he began cursing the disbelievers of Quraysh and said, "Messenger of Allah, I could hardly pray Asr before the sun set."The Messenger of Allah ﷺ replied, "By Allah, I have not prayed it either."So we descended to Bathan, and the Messenger of Allah ﷺ performed ablution and we performed ablution. Then the Messenger of Allah ﷺ prayed Asr after the sun had set, and afterwards prayed Maghrib.

Tirmidhi 180

Sahih

و حدثنا محمد بن بشار بندار حدثنا معاذ بن هشام حدثني أبي عن يحيى بن أبي كثير حدثنا أبو سلمة بن عبد الرحمن عن جابر بن عبد الله أن

عمر بن الخطاب قال

يوم الخندق وجعل يسب كفار قريش قال يا رسول الله ما كدت أصلي العصر حتى تغرب الشمس فقال رسول الله ﷺ والله إن صليتها قال فنزلنا بطحان فتوضأ رسول الله ﷺ وتوضأنا فصلى رسول الله ﷺ العصر بعد ما غربت الشمس ثم صلى بعدها المغرب

الترمذي 180صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Prayer
Chapter
Man who misses prayers, which one does he begin with
Numbering
Darussalam 180
Tirmidhi 180