Hadithcore
Mishkat al-Masabih, 1044

Muhammad b. Ibrahim on the authority of Qais b. ‘Amr told how when the prophet saw a man praying two <i>rak'as</i> after the Morning Prayer he said, “At the Morning Prayer pray two <i>rak'as</i>." The man replied I had not prayed the two <i>rak'as</i> which precede them, so I prayed themjust now,” and God’s Messenger said nothing. Abu Dawud transmitted it. Tirmidhi transmitted something similar, saying, “The <i>isnad</i> of this tradition is not connected, because Muhammad b. Ibrahim did not hear from Qais b. ‘Amr.” There is something similar in <i>Sharh as-sunna</i> and in some texts of <i>al-Masabih</i> from Qais b. Qahd.

عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ عَنْ قَيْسِ بْنِ عَمْرو قَالَ: رَأَى النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَجُلًا يُصَلِّي بَعْدَ صَلَاةِ الصُّبْحِ رَكْعَتَيْنِ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «صَلَاة الصُّبْحِ رَكْعَتَيْنِ رَكْعَتَيْنِ» فَقَالَ الرَّجُلُ: إِنِّي لَمْ أَكُنْ صَلَّيْتُ الرَّكْعَتَيْنِ اللَّتَيْنِ قَبْلَهُمَا فَصَلَّيْتُهُمَا الْآنَ. فَسَكَتَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ. رَوَاهُ أَبُو دَاوُدَ وَرَوَى التِّرْمِذِيُّ نَحْوَهُ وَقَالَ: إِسْنَادُ هَذَا الْحَدِيثِ لَيْسَ بِمُتَّصِلٍ لِأَنَّ مُحَمَّدَ بن إِبْرَاهِيم يسمع لَمْ يَسْمَعْ مِنْ قَيْسِ بْنِ عَمْرٍو. وَفِي شَرْحِ السُّنَّةِ وَنُسَخِ الْمَصَابِيحِ عَنْ قَيْسِ بْنِ قهد نَحوه

References1 variant
In-Book Reference
Book 4, Hadith 462