On the day of the Khandaq ʿUmar came, cursing the disbelievers of Quraish and said, "O Allah's Apostle! I have not offered the ʿAsr prayer and the sun has set." The Prophet ﷺ replied, "By Allah! I too, have not offered the prayer yet. "The Prophet ﷺ then went to Buthan, performed ablution and performed the ʿAsr prayer after the sun had set and then offered the Maghrib prayer after it."
جَاءَ عُمَرُ يَوْمَ الْخَنْدَقِ فَجَعَلَ يَسُبُّ كُفَّارَ قُرَيْشٍ وَيَقُولُ يَا رَسُولَ اللَّهِ مَا صَلَّيْتُ الْعَصْرَ حَتَّى كَادَتِ الشَّمْسُ أَنْ تَغِيبَ فَقَالَ النَّبِيُّ ﷺ وَأَنَا وَاللَّهِ مَا صَلَّيْتُهَا بَعْدُ قَالَ فَنَزَلَ إِلَى بُطْحَانَ فَتَوَضَّأَ وَصَلَّى الْعَصْرَ بَعْدَ مَا غَابَتِ الشَّمْسُ ثُمَّ صَلَّى الْمَغْرِبَ بَعْدَهَا