The Prophet (ﷺ) prayed and stood up following the first two rak'ahs, and they said (SubhanAllah). He carried on, then when he finished his prayer he performed two prostrations, then he said the Salam.
Reference: Sunan an-Nasa'i 1178 In-book : Book 12, Hadith 150 English translation : Vol. 2, Book 12, Hadith 1179
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.