Umar bin Khattab reported,

He began cursing the disbelievers of Quraysh on the day of the Battle of the Trench and said, "Messenger of Allah, by Allah, I could hardly pray Asr until the sun was about to set."The Messenger of Allah ﷺ replied, "By Allah, I have not prayed it either."So we went down to Buthan, and the Messenger of Allah ﷺ performed ablution and we performed ablution. Then the Messenger of Allah ﷺ prayed Asr after the sun had set, and after it he prayed Maghrib.

Azami 2392

Sahih

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

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

الأعظمي 2392صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Congregational prayer
Section
Performing missed prayers in congregation
Numbering
Jami al-Kamil 2392 (2nd edition)
Azami 2392