Jabir bin Abdullah reported,

Umar bin Khattab came on the day of the Battle of the Trench after the sun had set, cursing the disbelievers of Quraysh, and said, "Messenger of Allah, I could hardly pray until the sun was about to set."The Prophet ﷺ said, "By Allah, I have not prayed it either."So we went down with the Prophet ﷺ to Buthan, where he performed ablution for the prayer and we did the same. He prayed Asr after the sun had set, and then prayed Maghrib after it.

Azami 8927

Sahih

عن جابر بن عبد الله

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

الأعظمي 8927صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expedition of Ahzab
Section
Prophet's ﷺ supplication on the day of Ahzab
Numbering
Jami al-Kamil 8927 (2nd edition)
Azami 8927