Abu Hurairah reported,

From the Prophet ﷺ with the like of the hadith of Yahya from Malik. None of their narrations contain the phrase "with the imam," and in the narration of Ubaydullah it says, "he has caught the entire prayer."

Muslim 1373

Sahih

حدثنا أبو بكر بن أبي شيبة وعمرو الناقد وزهير بن حرب قالوا حدثنا ابن عيينة قال ح و حدثنا أبو كريب أخبرنا ابن المبارك عن معمر والأوزاعي ومالك بن أنس ويونس قال ح و حدثنا ابن نمير حدثنا أبي قال ح و حدثنا ابن المثنى حدثنا عبد الوهاب جميعا عن عبيد الله كل هؤلاء عن الزهري عن أبي سلمة

عن أبي هريرة

عن النبي ﷺ بمثل حديث يحيى عن مالك وليس في حديث أحد منهم مع الإمام وفي حديث عبيد الله قال فقد أدرك الصلاة كلها

مسلم 1373صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Whoever catches one rakat of the prayer has caught that prayer
Numbering
Darussalam 1373
Muslim 1373