The polytheists kept us occupied on the day of the Trench from praying the noon prayer until the sun had set, and this was before the rulings concerning fighting had been revealed. Then Allah revealed, "And Allah sufficed the believers in battle" [Ahzab 33:25]. So the Messenger of Allah ﷺ ordered Bilal, who called the iqamah for the noon prayer, and he prayed it just as he used to pray it at its proper time. Then Bilal called the iqamah for the afternoon prayer, and he prayed it just as he used to pray it at its proper time. Then he called the adhan for the sunset prayer, and he prayed it just as he used to pray it at its proper time.
شغلنا المشركون يوم الخندق عن صلاة الظهر حتى غربت الشمس، وذلك قبل أن ينزل في القتال ما نزل، فأنزل الله عز وجل: {وكفى الله المؤمنين القتال} [ سورة الأحزاب: ٢٥] فأمر رسول الله ﷺ بلالا فأقام الصلاة الظهر فصلاها كما كان يصليها لوقتها، ثم أقام للعصر فصلاها كما كان يصليها لوقتها، ثم أذن للمغرب فصلاها كما كان يصليها في وقتها.
Nasai (661) narrated it from Amr bin Ali, who said, Yahya (meaning Ibn Saeed Qattan) narrated to us, who said, Ibn Abu Dhib narrated to us, who said, Saeed bin Abu Saeed narrated to us, from Abdul-Rahman bin Abu Saeed, from his father, and he related the hadith. Its isnad is sahih.The version that Shafii narrated in al-Umm (1/86) from Ibn Abu Fudayk, from Ibn Abu Dhib, with the same chain, mentions four prayers with the addition of the Isha prayer, and it contains a detailed explanation of the phrase "before the verse about fighting was revealed," which refers to the prayer of fear, "either on foot or riding" [Baqarah 2:239].Shafii said, "We adopt all of this, and it indicates that anyone who combines two prayers within the time of the first of them should give the call to prayer for each one, giving the adhan for the first, and for the second he gives the call to prayer without the adhan."This hadith was also narrated by both Imam Ahmad (7198) and Ibn Khuzayma (996), both through the route of Yahya bin Saeed Qattan, but neither of them mentioned the adhan at the beginning of the prayer, unless it is understood from the Prophet'sﷺ statement that he called for Bilal and commanded him (that is, to give the adhan), then he gave the call to prayer for Dhuhr, that is, after the adhan. It appears that this is what Nasai understood, for he titled his chapter, "The Adhan for a Missed Prayer," and Baghawi likewise titled his chapter in Sharh al-Sunnah (2/302), "The Adhan for the Missed Prayer and the Call to Prayer for It."However, Bayhaqi (1/402–403) said that Shafii narrated it in al-Qadeem from more than one person, from Ibn Abu Dhib, without naming any of them, and said in the hadith, "So he commanded Bilal, and he gave the adhan and the call to prayer, and he prayed Dhuhr, then he commanded him and he gave the call to prayer and he prayed Asr, then he commanded him and he gave the call to prayer and he prayed Maghrib, then he commanded him and he gave the call to prayer and he prayed Isha."Then Bayhaqi said, "This is how Abu Ubayda bin Abdullah bin Masud narrated it, from his father, in this account, in one of the two versions related from him, except that Abu Ubayda did not meet his father, so it is a good mursal narration."I say, it is as he said, for the hadith of Abdullah bin Masud contains a break in its chain. It was narrated by Tirmidhi (3371), Nasai (182), and Ahmad (3555), all of them through the route of Abu Zubayr, from Nafi bin Jubayr bin Mutim, from Abu Ubayda bin Abdullah bin Masud, from his father, who said, "The polytheists kept the Messenger of Allah occupied away from four prayers on the day of the Trench, until part of the night had passed as Allah willed. So he commanded Bilal, and he gave the adhan, then he gave the call to prayer and prayed Dhuhr, then he gave the call to prayer and prayed Asr, then he gave the call to prayer and prayed Maghrib, then he gave the call to prayer and prayed Isha."Tirmidhi said, "There is nothing wrong with the isnad of the hadith of Abdullah, except that Abu Ubayda did not hear from Abdullah." End of quote.See further, Minna Kubra (1/396).