أَخْبَرَنَا الشَّافِعِيُّ رَضِيَ اللَّهُ عَنْهُ، قَالَ: أَخْبَرَنَا إِبْرَاهِيمُ بْنُ مُحَمَّدٍ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ: أَنَّ رَجُلًا قَرَأَ عِنْدَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ السَّجْدَةَ فَسَجَدَ، فَسَجَدَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ثُمَّ قَرَأَ آخَرُ عِنْدَهُ السَّجْدَةَ فَلَمْ يَسْجُدِ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: يَا رَسُولَ اللَّهِ، قَرَأَ فُلَانٌ عِنْدَكَ السَّجْدَةَ فَسَجَدْتَ، وَقَرَأْتُ عِنْدَكَ السَّجْدَةَ فَلَمْ تَسْجُدْ. فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: "كُنْتَ إِمَامًا فَلَوْ سَجَدْتَ سَجَدْتُ" .
It is narrated from Ata bin Yasar that a man recited a verse of prostration before the Prophet ﷺ and performed prostration, so the Noble Prophet ﷺ also performed prostration. Then another person recited a verse of prostration before him, but the Prophet ﷺ did not perform prostration. That man said: "O Messenger of Allah! So-and-so recited a verse of prostration before you and you performed prostration, but when I recited it, you did not." The Prophet ﷺ said: "You were the imam; if you had performed prostration, I would have performed prostration as well."