Jabir bin Abdullah reported,

Umar came on the day of the Trench cursing the disbelievers of Quraysh and saying, "Messenger of Allah, I could not pray Asr until the sun was about to set."The Prophet ﷺ said, "By Allah, I have not prayed it either."So he went down to Bathan, performed ablution, and prayed Asr after the sun had set, then prayed Maghrib after it.

Bukhari 945

Sahih

حدثنا يحيى بن جعفر البخاري قال حدثنا وكيع عن علي بن مبارك عن يحيى بن أبي كثير عن أبي سلمة

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

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

البخاري 945صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer of fear
Chapter
Prayer when approaching fortresses and meeting the enemy
Numbering
Darussalam 945
Bukhari 945