Ayesha reported,

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 courage and bravery. The companions of the Messenger of Allah ﷺ were delighted when they saw him.When he reached the Messenger of Allah ﷺ, he said, "I have come to follow you and gain a share of the spoils with you."The Messenger of Allah ﷺ asked him, "Do you believe in Allah and His Messenger?"The man replied, "No."The Prophet said, "Then go back, for I will never seek the help of an idolater."She said, Then he continued on, and when we reached the tree, the man caught up with him again and said to him as he had the first time. The Prophet ﷺ answered him as he had the first time, saying, "Go back, for I will never seek the help of an idolater."Then the man went back, but caught up with him again at al-Bayda. The Prophet asked him as before, "Do you believe in Allah and His Messenger?"The man said, "Yes."So the Messenger of Allah ﷺ said to him, "Then come along."

Muslim 4700

Sahih

حدثني زهير بن حرب حدثنا عبد الرحمن بن مهدي عن مالك ح و حدثنيه أبو الطاهر واللفظ له حدثني عبد الله بن وهب عن مالك بن أنس عن الفضيل بن أبي عبد الله عن عبد الله بن نيار الأسلمي عن عروة بن الزبير

عن عائشة زوج النبي ﷺ أنها قالت

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

مسلم 4700صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Jihad and expeditions
Chapter
Dislike of seeking help from a disbeliever in battle
Numbering
Darussalam 4700
Muslim 4700