On the day of Al-Khandaq (the battle of trench.) `Umar bin Al-Khattab came cursing the disbelievers of Quraish after the sun had set and said, "O Allah's Messenger (ﷺ) I could not offer the `Asr prayer till the sun had set." The Prophet (ﷺ) said, "By Allah! I, too, have not prayed." So we turned towards Buthan, and the Prophet (ﷺ) performed ablution and we too performed ablution and offered the `Asr prayer after the sun had set, and then he offered the Maghrib prayer.
Reference: Sahih al-Bukhari 596 In-book : Book 9, Hadith 72 USC-MSA web (English) : Vol. 1, Book 10, Hadith 570 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.