The Messenger of Allah ﷺ led us in prayer praying two rak'ahs. When he stood up and did not sit (at the end of two rak'ahs) the people stood up along with him. When he finished the prayer and we expect him to give the salutation, he said: "Allah is most great." While sitting and made two prostrations before giving the salutation. Then he gave it. (Using translation from Abū Dāʾūd 1034)
صَلَّى لَنَا رَسُولُ اللهِ ﷺ رَكْعَتَيْنِ ثُمَّ قَامَ وَلَمْ يَجْلِسْ بَعْدَ الرَّكْعَتَيْنِ فَقَامَ النَّاسُ مَعَهُ فَلَمَّا قَضَى صَلَاتَهُ سَجَدَ سَجْدَتَيْنِ وَهُوَ جَالِسٌ قَبْلَ التَّسْلِيمِ ثُمَّ سَلَّمَ