from him (1):
“Whoever accompanied the Prophet—may Allah bless him and grant him peace—for a year, or a month (2), or a day, or an hour (3), or saw him while believing (4) in him, is one of his Companions. His share in companionship is commensurate with the time he spent accompanying him.”
This is the view of the vast majority of scholars, including jurists, speculative theologians, and others: they count among his Companions both those whose companionship was brief and those whose companionship was lengthy. There is a weak dissenting view on this matter.
The evidence for the majority’s view is the report recorded in the two Sahīh collections from Abū Sa‘īd al-Khudrī, who related that the Prophet—may Allah bless him and grant him peace—said:
“A time will come when a group of people will go on a military campaign, and they will be asked, ‘Is there anyone among you who saw the Messenger of Allah—may Allah bless him and grant him peace?’ They will answer, ‘Yes,’ and victory will be granted to them. Then a group of people will go on a military campaign, and they will be asked, ‘Is there anyone among you who saw someone who accompanied the Prophet—may Allah bless him and grant him peace?’ They will answer, ‘Yes,’ and victory will be granted to them. Then a group of people will go on a military campaign, and they will be asked, ‘Is there anyone among you who saw someone who accompanied someone who accompanied the Messenger of Allah—may Allah bless him and grant him peace?’ They will answer, ‘Yes,’ and victory will be granted to them.”
This is Muslim’s wording. In another narration, he records:
“A time will come when an expedition will be dispatched from among them (5), and they will say, ‘See whether you can find among you any of the Companions of the Messenger of Allah—may Allah bless him and grant him peace.’ Such a man will be found, and victory will be granted to them on his account.