Abu Saeed Khudri reported,

The Prophet ﷺ said, "A time will come upon people when they will go out to fight, and it will be asked of them, 'Is there among you anyone who accompanied the Messenger ﷺ?' They will answer, 'Yes,' and victory will be granted to them. Then they will go out to fight again, and it will be asked of them, 'Is there among you anyone who accompanied a companion of the Messenger ﷺ?' They will answer, 'Yes,' and victory will be granted to them."

Bukhari 3594

Sahih

حدثنا قتيبة بن سعيد حدثنا سفيان عن عمرو عن جابر

عن أبي سعيد رضي الله عنه

عن النبي ﷺ قال يأتي على الناس زمان يغزون فيقال لهم فيكم من صحب الرسول ﷺ فيقولون نعم فيفتح عليهم ثم يغزون فيقال لهم هل فيكم من صحب من صحب الرسول ﷺ فيقولون نعم فيفتح لهم

البخاري 3594صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues
Chapter
Signs of prophethood in Islam
Numbering
Darussalam 3594
Bukhari 3594