(10) The Book of Leading the Prayer (Al-Imamah)
كتاب الإمامة
(61) Chapter: Concerning one who prays the two (Sunnah) Rak'ahs of fajr while the Imam is leading the prayer
(61) باب فِيمَنْ يُصَلِّي رَكْعَتَىِ الْفَجْرِ وَالإِمَامُ فِي الصَّلاَةِ
Sunan an-Nasa'i 868 
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?"'
أَخْبَرَنَا يَحْيَى بْنُ حَبِيبِ بْنِ عَرَبِيٍّ، قَالَ حَدَّثَنَا حَمَّادٌ، قَالَ حَدَّثَنَا عَاصِمٌ، عَنْ عَبْدِ اللَّهِ بْنِ سَرْجِسَ، قَالَ جَاءَ رَجُلٌ وَرَسُولُ اللَّهِ صلى الله عليه وسلم فِي صَلاَةِ الصُّبْحِ فَرَكَعَ الرَّكْعَتَيْنِ ثُمَّ دَخَلَ فَلَمَّا قَضَى رَسُولُ اللَّهِ صلى الله عليه وسلم صَلاَتَهُ قَالَ ‏ "‏ يَا فُلاَنُ أَيُّهُمَا صَلاَتُكَ الَّتِي صَلَّيْتَ مَعَنَا أَوِ الَّتِي صَلَّيْتَ لِنَفْسِكَ ‏"‏ ‏.‏
Grade :  Sahih (Darussalam)
Reference : Sunan an-Nasa'i 868
In-book reference : Book 10, Hadith 92
English translation : Vol. 1, Book 10, Hadith 869