Sahih al-Bukhari 2897
Abdullah bin Muhammad narrated to us that Sufyan (bin Uyainah) told us. He narrated from Amr (bin Dinar) that he heard Hazrat Jabir (ra) that it is reported from Hazrat Abu Sa'id Khudri (ra). He narrated from the Prophet (saw) that he (saw) said: “A time will come when a company of people will go out to fight. They will be asked: ‘Is there anyone among you who kept company with the Prophet (saw)?’ It will be said: ‘Yes.’ Then victory will be granted because of him. Then a time will come when it will be asked: ‘Is there anyone among you who kept company with the Companions of the Prophet (saw)?’ It will be said: ‘Yes.’ Then victory will be granted. Then a time will come when it will be said: ‘Is there anyone among you who kept company with those who kept company with the Companions?’ It will be said: ‘Yes.’ Then victory will be granted."
AI-translated by Islam-Today