Jabir bin Abdullah reported,

On the day of the Battle of the Trench, after the sun had set, Umar bin Khattab began cursing the disbelievers of Quraysh and said, "Messenger of Allah, I could hardly perform the afternoon prayer before the sun was about to set."The Messenger of Allah ﷺ replied, "By Allah, I have not prayed it either."So we went down with the Messenger of Allah ﷺ to Buthan. He performed ablution for the prayer and we did the same. Then he prayed the afternoon prayer after the sun had set, and after it he prayed the sunset prayer.

Nasai 1367

Sahih

أخبرنا إسمعيل بن مسعود ومحمد بن عبد الأعلى قالا حدثنا خالد وهو ابن الحارث عن هشام عن يحيى بن أبي كثير عن أبي سلمة بن عبد الرحمن

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

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

النسائي 1367صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Forgetfulness
Chapter
If a man is asked "Have you prayed?" should he say no
Numbering
Darussalam 1367
Nasai 1367