Abdullah bin Sarjas reported,

The Messenger of Allah ﷺ saw a man praying the two rakahs before the dawn prayer while he himself was already in the prayer. When he had finished, he asked the man, "Which of your two prayers did you count?"

Ibn Majah 1152

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا أبو معاوية عن عاصم

عن عبد الله بن سرجس

أن رسول الله ﷺ رأى رجلا يصلي الركعتين قبل صلاة الغداة وهو في الصلاة فلما صلى قال له بأي صلاتيك اعتددت

ابن ماجه 1152صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
If the prayer is called, there is no prayer except the obligatory one
Numbering
Darussalam 1152
Ibn Majah 1152