سنن نسائي Sunan an-Nasa'i كتاب الإمامة The Book of Leading the Prayer (Al-Imamah)
بَابُ : فِيمَنْ يُصَلِّي رَكْعَتَىِ الْفَجْرِ وَالإِمَامُ فِي الصَّلاَةِ

Chapter: Concerning one who prays the two (Sunnah) Rak'ahs of fajr while the Imam is leading the prayer

1 hadith
Hadith 869
أَخْبَرَنَا يَحْيَى بْنُ حَبِيبِ بْنِ عَرَبِيٍّ ، قال : حَدَّثَنَا حَمَّادٌ ، قال : حَدَّثَنَا عَاصِمٌ ، عَنْ عَبْدِ اللَّهِ بْنِ سَرْجِسَ ، قال : جَاءَ رَجُلٌ وَرَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي صَلاةِ الصُّبْحِ فَرَكَعَ الرَّكْعَتَيْنِ ، ثُمَّ دَخَلَ فَلَمَّا قَضَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَاتَهُ قَالَ : " يَا فُلَانُ أَيُّهُمَا صَلَاتُكَ الَّتِي صَلَّيْتَ مَعَنَا أَوِ الَّتِي صَلَّيْتَ لِنَفْسِكَ " .
´It was narrated that 'Abdullah bin Sarjis said:` "A man came while the Messenger of Allah (ﷺ) was praying Subh, and he prayed two Rak'ahs then joined the prayer. When the Messenger of Allah (ﷺ) had finished praying he said: O so-and-so, which of them is your prayer - the one you prayed with us or the one you prayed on your own?"'
Hadith Reference Sunan an-Nasa'i / The Book of Leading the Prayer (Al-Imamah) / Hadith: 869
Hadith Grading الألبانی: صحيح  |  زبیر علی زئی: صحيح مسلم
Hadith Takhrij «صحیح مسلم/المسافرین 9 (712)، سنن ابی داود/الصلاة 294 (1265)، سنن ابن ماجہ/إقامة 103 (1152)، (تحفة الأشراف: 5319)، مسند احمد 5/82 (صحیح)»