Reported by al-Bukhārī.
Ibn Luhayʿah said: Yazīd ibn Abī Ḥabīb narrated to me, and Aslam Abū ʿImrān narrated to him that he heard Abū Ayyūb al-Anṣārī say: While we were in Madinah, the Messenger of Allah ﷺ told us, “Shall we go out to meet the caravan? Perhaps Allah will grant us its spoils.” We replied, “Yes.” We set out, and after marching a day or two he ordered us to count ourselves. We did so and found that we were 313 men. When we informed him of our number, he was delighted, praised Allah, and said, “The same number as Ṭālūt’s companions.”
Ibn Wahb said: Ḥayy ibn ʿAbd-Allah related to me, from Abū ʿAbd al-Raḥmān al-Ḥublī, from ʿAbd-Allah ibn ʿAmr, that the Messenger of Allah ﷺ went forth to Badr with 315 fighting men, just as Ṭālūt had done. Upon departing he supplicated for them, saying, “O Allah, they are barefoot—so provide them mounts; O Allah, they are without clothes—so clothe them; O Allah, they are hungry—so fill them.” Allah granted them victory, and they returned with every man leading a camel or two; all were clothed and satisfied.
Abū Isḥāq reported from al-Barāʾ: “There was no horseman on the Day of Badr except al-Miqdād.”
Abū Isḥāq also narrated—from Ḥārithah ibn Muḍrib—that ʿAlī said: “On the night before Badr, none of us was awake except the Messenger of Allah ﷺ; he was praying beneath a tree and invoking Allah until dawn. I swear, there was no mounted man among us that day except al-Miqdād.” Shuʿbah transmitted it from him.
And through another chain ʿAlī said: “We had only two horses with us: one for al-Zubayr and one for al-Miqdād ibn al-Aswad.”