Sayyiduna Hudhayfah (may Allah be pleased with him) narrates that nothing prevented us, that is, me and my father Hisl (who is al-Yaman) (may Allah be pleased with him), from taking part in the Battle of Badr except that, when we set out intending to go to the Prophet (peace and blessings be upon him), the disbelievers of Quraysh blocked our way and said: "You want to go to Muhammad (peace and blessings be upon him)?" We said: "That is not our intention." They said: "Then give us a covenant and pledge that you will not fight alongside him." So we made a covenant with them, and they let us go. Then we came to the Prophet (peace and blessings be upon him) and told him (peace and blessings be upon him) the whole story. He (peace and blessings be upon him) said: "We will fulfil the covenant made with them and seek Allah's help against them; go back to Madinah." So we returned.
Hadith Referenceالمعجم الأوسط / باب الميم / 8436
Hadith Takhrij«أخرجه مسلم فى «صحيحه» برقم: 1787، والحاكم فى «المستدرك» برقم: 4936، والبيهقي فى «السنن الكبرى» برقم: 18497، وأحمد فى «مسنده» برقم: 23834، 23852، والبزار فى «مسنده» برقم: 2801، 2930، وابن أبي شيبة فى «مصنفه» برقم: 33527، 37869، والطحاوي فى «شرح معاني الآثار» برقم: 4652، 4653، والطحاوي فى «شرح مشكل الآثار» برقم: 656، 657، والطبراني فى «الكبير» برقم: 3009، 3012»