TABARANI 18918:
from Maʿn b. ʿĪsá —
[Machine] Sa'id ibn al-Sa'ib al-Ta'ifi narrated from Nuha ibn Sa'sa'a who narrated from Yazid ibn 'Amir, he said: I came to the Prophet ﷺ during either the Dhuhr or Asr prayer, and I had already performed them at home. When I found the Prophet ﷺ praying, I sat down and did not join him in the prayer. The Messenger of Allah ﷺ finished his prayer and saw me sitting, so he said, "Did you not offer the greetings, O Yazid?" I said, "Yes, O Messenger of Allah, I did greet (the prayer)." He said, "What prevents you from joining the people in their prayer?" I said, "I had already prayed at home and I thought that you had already prayed." He said, "When you come to the prayer and find the people praying, then pray with them. Even if you have already prayed, it will be a voluntary prayer for you. And this is prescribed."
الطبراني ١٨٩١٨:
عن معن بن عيسى —
ثَنَا سَعِيدُ بْنُ السَّائِبِ الطَّائِفِيُّ عَنْ نُوحِ بْنِ صَعْصَعَةَ عَنْ يَزِيدَ بْنِ عَامِرٍ قَالَ جِئْتُ وَالنَّبِيُّ ﷺ فِي الصَّلَاةِ إِمَّا فِي الظُّهْرِ وإِمَّا فِي الْعَصْرِ وَكُنْتُ صَلَّيْتُهُمَا فِي الْمَنْزِلِ فَلَمَّا وَجَدْتُ النَّبِيَّ ﷺ فِي الصَّلَاةِ جَلَسْتُ وَلَمْ أدْخُلْ مَعَهُمْ فِي الصَّلَاةِ فَانْصَرَفَ عَلَيْنَا رَسُولُ اللهِ ﷺ فَرَآنِي جَالِسًا فَقَالَ أَلَمْ تُسْلِمْ يَا يَزِيدُ قُلْتُ بَلَى يَا رَسُولَ اللهِ قَد أَسْلَمْتُ فَقَالَ مَا يَمْنَعُكُ أَنْ تَدْخُلَ مَعَ النَّاسِ فِي صَلَاتِهِمْ قُلْتُ إِنِّي كُنْتُ صَلَّيْتُ فِي مَنْزِلِي وَأَنَا أَحْسِبُ أَنْ قَد صَلَّيْتُمْ قَالَ فَإِذَا جِئْتَ الصَّلَاةَ فَوَجَدْتَ النَّاسَ يُصَلُّونَ فَصَلِّ مَعَهُمْ وَإِنْ كُنْتَ قَد صَلَّيْتَ تَكُونُ لَكَ نَافِلَةً وَهَذِه مَكْتُوبَةٌ
hadithunlocked.com