Abu Saeed Khudri reported,

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

Azami 9801

Sahih

عن أبي سعيد الخدري

عن النبي ﷺ قال: يأتي زمان يغزو فئام من الناس، فيقال: فيكم من صحب النبي ﷺ؟ فيقال: نعم، فيفتح عليه، ثم يأتي زمان فيقال: فيكم من صحب أصحاب النبي ﷺ؟ فيقال: نعم، فيفتح، ثم يأتي زمان فيقال: فيكم من صحب صاحب أصحاب النبي ﷺ؟ فيقال: نعم، فيفتح.

الأعظمي 9801صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtue of companionship
Section
Virtue of companionship
Numbering
Jami al-Kamil 9801 (2nd edition)
Azami 9801