The Prophet Muhammad ﷺ said, 'There is no prayer for the one who does not recite the Opening of the Book,' which is Al-Fatihah, the first chapter of the Quran. In seven short verses it says: In the name of Allah, the Most Gracious, the Most Merciful; praise be to Allah, Lord of the worlds; the Most Gracious, the Most Merciful; Master of the Day of Judgment; You alone we worship and You alone we ask for help; guide us on the straight path; the path of those You have blessed, not of those who earned Your anger, nor of those who went astray. After it, a Muslim recites another passage, which can be a short chapter.
In the bowing, the Prophet ﷺ said 'Subhana Rabbiyal-Azim' (glory to my Lord, the Magnificent). Rising, he said 'Sami'a Allahu liman hamidah' (Allah hears the one who praises Him), and 'Rabbana laka al-hamd' (our Lord, to You is the praise). In prostration he said 'Subhana Rabbiyal-A'la' (glory to my Lord, the Most High). His wife Aisha also reports that he often said in his bowing and prostration, 'Glory be to You, O Allah, our Lord, and praise be to You; O Allah, forgive me.'
In the sitting, the Prophet ﷺ taught the Companions the tashahhud: 'All greetings, prayers and good words are for Allah. Peace be upon you, O 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 messenger.' He then said one may choose any supplication he likes. The prayer ends by turning the head to the right and to the left, with a greeting of peace. The whole prayer is worship of Allah alone; the greeting of peace to the Prophet and to the righteous servants is a greeting, not worship.