Huzaifa bin Yaman reported,

"Nothing prevented me from being present at Badr except that I had set out together with my father Husayl, and the disbelievers of Quraysh seized us. They said, 'You intend to join Muhammad.'We replied, 'We do not intend that. We only intend Madinah.'So they took from us a solemn covenant with Allah that we would head straight to Madinah and not fight alongside him. We came to the Messenger of Allah ﷺ and told him what had happened.He said, 'Go on to Madinah. We will fulfill our covenant with them and seek Allah's help against them.'"

Azami 8738

Sahih

عن حذيفة بن اليمان قال

ما منعني أن أشهد بدرا إلا أني خرجت أنا، وأبي حسيل، فأخذنا كفار قريش قالوا: إنكم تريدون محمدا؟ فقلنا ما نريده، ما نريد إلا المدينة. فأخذوا منا عهد الله وميثاقه لتنصر فن إلى المدينة، ولا نقاتل معه. فأتينا رسول الله ﷺ فأخبرناه الخبر، فقال: انصرفا، نفي لهم بعهدهم، ونستعين الله عليهم.

الأعظمي 8738صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expedition of Badr
Section
Fulfillment of the Prophet ﷺ of his pledge to his companions in jihad
Numbering
Jami al-Kamil 8738 (2nd edition)
Azami 8738