Sunan al-Darimi 1312
أَخْبَرَنَا يَزِيدُ بْنُ هَارُونَ، أَخْبَرَنَا دَاوُدُ بْنُ أَبِي هِنْدٍ، قَالَ: قُلْتُ لِسَعِيدِ بْنِ الْمُسَيَّبِ، رَجُلٌ صَلَّى فِي بَيْتِهِ، ثُمَّ أَدْرَكَ الْإِمَامَ وَهُوَ يُصَلِّي، أَيُصَلِّي مَعَهُ؟ قَالَ: نَعَمْ. قُلْتُ: بِأَيَّتِهِمَا يَحْتَسِبُ؟ قَالَ: بِالَّتِي صَلَّى مَعَ الْإِمَامِ فَإِنَّ أَبَا هُرَيْرَةَ، حَدَّثَنَا أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ: «صَلَاةُ الرَّجُلِ فِي الْجَمِيعِ تَزِيدُ عَلَى صَلَاتِهِ وَحْدَهُ بِضْعًا وَعِشْرِينَ جُزْءًا»
Yazid ibn Harun informed us; Dawud ibn Abi Hind informed us; he said: I said to Saʿid ibn al-Musayyib: "A man prays in his house, then catches up with the imam while he is praying: should he pray with him?" He said: "Yes." I said: "Which of the two does he count?" He said: "The one he prayed with the imam, for Abu Hurayrah narrated to us that the Messenger of Allah ﷺ said: 'A man's prayer in the congregation exceeds his prayer alone by twenty-some parts.'"