Qays reported,

The Messenger of Allah ﷺ came out, the prayer was called, and I prayed the dawn prayer with him. Then the Prophet ﷺ turned and found me praying, so he said, "Hold on, Qays. Two prayers together?"I said, "Messenger of Allah, I had not prayed the two rakahs of fajr."He said, "Then there is no harm."

Tirmidhi 422

Sahih

حدثنا محمد بن عمرو السواق البلخي قال حدثنا عبد العزيز بن محمد عن سعد بن سعيد عن محمد بن إبراهيم

عن جده قيس قال

خرج رسول الله ﷺ فأقيمت الصلاة فصليت معه الصبح ثم انصرف النبي ﷺ فوجدني أصلي فقال مهلا يا قيس أصلاتان معا قلت يا رسول الله إني لم أكن ركعت ركعتي الفجر قال فلا إذن

الترمذي 422صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Prayer
Chapter
One who misses the two rakahs before Fajr prays them after the Fajr prayer
Numbering
Darussalam 422
Tirmidhi 422