It was narrated that Abu 'Ubaidah said: "Abdullah said: 'The idolaters kept the Prophet (S.A.W) from (offering) four prayers on the day of Al-Khandaq, so he commanded Bilal to call the Adhan, then he said the Iqamah and prayed Zuhr, then he said the Iqamah and prayed 'Asr, then he said the Iqamah and prayed the Maghrib, then he said the Iqamah and prayed 'Isha''."
This hadith also teaches us about perseverance; even though it may have been difficult for the Prophet Muhammad (S.A.W) to offer his prayers under such circumstances, he still did not give up on his faith or stop worshipping Allah as He deserves - this is a lesson for all of us that no matter how hard things get in life, we must never forget who we are worshipping and why it is important for us to stay devoted towards Him at all times.