Yahya bin Saeed reported,

A man asked Saeed bin Musayab, "I pray at home, then I come to the masjid and find the imam praying. Should I pray with him?"Saeed replied, "Yes."The man asked, "Then which of the two counts as my prayer?"Saeed answered, "Are you the one who decides that? That rests with Allah alone."

Malik 306

Sahih

و حدثني عن مالك

عن يحيى بن سعيد

أن رجلا سأل سعيد بن المسيب فقال إني أصلي في بيتي ثم آت المسجد فأجد الإمام يصلي أفأصلي معه فقال سعيد نعم فقال الرجل فأيهما صلاتي فقال سعيد أو أنت تجعلهما إنما ذلك إلى الله

مالك 306صحيح
Contents
Reference
Commentary
Ayat
Collection
Muwatta Malik
Book
Congregational prayer
Numbering
Laithi 306
Malik 306