The whole prayer

Sitting

Tashahhud

The greeting the Prophet ﷺ taught word for word, like teaching a surah.

التَّحِيَّاتُ لِلَّهِ وَالصَّلَوَاتُ وَالطَّيِّبَاتُ، السَّلَامُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ، السَّلَامُ عَلَيْنَا وَعَلَى عِبَادِ اللهِ الصَّالِحِينَ، أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ

At-taḥiyyātu lillāhi waṣ-ṣalawātu waṭ-ṭayyibāt. As-salāmu ʿalayka ayyuhan-Nabiyyu wa raḥmatullāhi wa barakātuh. As-salāmu ʿalaynā wa ʿalā ʿibādillāhiṣ-ṣāliḥīn. Ash-hadu an lā ilāha illa-llāh, wa ash-hadu anna Muḥammadan ʿabduhu wa rasūluh.

All greetings of honour belong to Allah, and all prayers, and all good things. Peace be upon you, Prophet, and the mercy of Allah and His blessings. Peace be upon us and upon the righteous servants of Allah. I bear witness that there is no god but Allah, and I bear witness that Muhammad is His servant and His Messenger.

Why it is said here

Ibn Masʿūd رضي الله عنه said the Prophet ﷺ taught them the tashahhud the way he taught them a surah of the Qur'an — hand in hand, word by word. Read the order: greetings to Allah first, then peace on the Prophet ﷺ, then peace on ourselves and every righteous servant, then the testimony. And notice that he is called 'His servant' before 'His Messenger', so that love for him never turns into worship of him.