Sunnah.com : Book 8, Hadith 12
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ عَفِيفٍ السَّهْمِيِّ، عَنْ رَجُلٍ، مِنْ بَنِي أَسَدٍ أَنَّهُ سَأَلَ أَبَا أَيُّوبَ الأَنْصَارِيَّ فَقَالَ إِنِّي أُصَلِّي فِي بَيْتِي ثُمَّ آتِي الْمَسْجِدَ فَأَجِدُ الإِمَامَ يُصَلِّي أَفَأُصَلِّي مَعَهُ فَقَالَ أَبُو أَيُّوبَ نَعَمْ فَصَلِّ مَعَهُ فَإِنَّ مَنْ صَنَعَ ذَلِكَ فَإِنَّ لَهُ سَهْمَ جَمْعٍ أَوْ مِثْلَ سَهْمِ جَمْعٍ .
Yahya related to me from Malik from Afif as-Sahmi that a man from the tribe of Bani Asad asked Abu Ayyub al-Ansari. "Sometimes I pray in my house, and then come to the mosque and find the imam praying. Should I pray with him?" Abu Ayyub said, "Yes, pray with him, for some one who does so has the reward of the group, or the equivalent of the reward of the group."
Full reference and source
Sunnah.com : Book 8, Hadith 12 USC-MSA web (English) : Book 8, Hadith 12 Arabic : Book 8, Hadith 301
View source on Sunnah.com (opens in a new tab)