Jabir bin Abdullah reported,

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

Bukhari 596

Sahih

حدثنا معاذ بن فضالة قال حدثنا هشام عن يحيى عن أبي سلمة

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

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

البخاري 596صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer times
Chapter
Those who led people in congregational prayer after the time had passed
Numbering
Darussalam 596
Bukhari 596