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.
حدثنا معاذ بن فضالة قال حدثنا هشام عن يحيى عن أبي سلمة
أن عمر بن الخطاب جاء يوم الخندق بعد ما غربت الشمس فجعل يسب كفار قريش قال يا رسول الله ما كدت أصلي العصر حتى كادت الشمس تغرب قال النبي ﷺ والله ما صليتها فقمنا إلى بطحان فتوضأ للصلاة وتوضأنا لها فصلى العصر بعد ما غربت الشمس ثم صلى بعدها المغرب