Narrated Jabir bin Abdullah: On the day of Khandaq (battle of the Trench) ‘Omar bin Al-Khattab came cursing the disbelievers of Quraish after the sun had set. He said, “O Allah’s Messenger I could not offer the Asr prayer till the sun had set.”
The Prophet, peace be upon him, said, “By Allah! I, too, have not offered the Salat.” So we turned towards Buthan, and the Prophet, peace be upon him, performed ablution and offered the Asr prayer after the sun had set, and then he offered the Maghrib prayer.
[I: 570 O. B. Sahih Al-Bukhari]