Ayesha reported,

ﷺ She reported that the Messenger of Allah ﷺ set out toward Badr. When he reached Harrat al-Wabra, a man caught up with him who was known for his boldness and bravery. The companions of the Messenger of Allah ﷺ were delighted when they saw him.When he reached him, the man said to the Messenger of Allah ﷺ, "I have come to follow you and share in the spoils with you."The Messenger of Allah ﷺ asked him, "Do you believe in Allah and His Messenger?"He replied, "No."The Prophet ﷺ said, "Then go back, for I will never seek the help of a polytheist."She continued, Then he went on until, when we reached the tree, the man caught up with him again and said to him what he had said the first time. The Prophet ﷺ answered him as he had answered the first time, saying, "Go back, for I will never seek the help of a polytheist."So the man went back, then caught up with him again at al-Bayda. The Prophet ﷺ said to him as before, "Do you believe in Allah and His Messenger?"He replied, "Yes."So the Messenger of Allah ﷺ said to him, "Then come along."

Azami 7914

Sahih

عن عائشة زوج النبي

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

الأعظمي 7914صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Seeking help from the disbeliever in jihad
Numbering
Jami al-Kamil 7914 (2nd edition)
Azami 7914