Sunan an-Nasa'i #1236 · The Book of Forgetfulness (In Prayer)

Sunan an-Nasa'iIt was narrated from Imran bin Husain that
Sunan an-Nasa'i · Book 13 · The Book of Forgetfulness (In Prayer)
Sunan an-Nasa'i · كتاب 13 · كتاب السهو
The Prophet (ﷺ) led them in prayer and forgot (how many rak'ahs he had prayed), then he prostrated twice, then he said the salam
أَخْبَرَنَا مُحَمَّدُ بْنُ يَحْيَى بْنِ عَبْدِ اللَّهِ النَّيْسَابُورِيُّ، قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ الأَنْصَارِيُّ، قَالَ أَخْبَرَنِي أَشْعَثُ، عَنْ مُحَمَّدِ بْنِ سِيرِينَ، عَنْ خَالِدٍ الْحَذَّاءِ، عَنْ أَبِي قِلاَبَةَ، عَنْ أَبِي الْمُهَلَّبِ، عَنْ عِمْرَانَ بْنِ حُصَيْنٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم صَلَّى بِهِمْ فَسَهَا فَسَجَدَ سَجْدَتَيْنِ ثُمَّ سَلَّمَ ‏.‏
Reference : Sunan an-Nasa'i 1236In-book reference : Book 13, Hadith 58