The Prophet ﷺ led them in prayer and forgot something, so he made prostrations and uttered the tashahhud, then gave the salutation. (Using translation from Abū Dāʾūd 1039)
«أَنَّ النَّبِيَّ ﷺ صَلَّى بِهِمْ فَسَجَدَ سَجْدَتَيِ السَّهْوِ ثُمَّ تَشَهَّدَ وَسَلَّمَ»