Ayesha, the wife of the Prophet ﷺ, used to say in the tashahhud, "All pure greetings and pure prayers are for Allah. I bear witness that there is no god but Allah alone, with no partner, and I bear witness that Muhammad is His servant and His messenger. Peace be upon you, Prophet, and the mercy of Allah and His blessings. Peace be upon us and upon the righteous servants of Allah. Peace be upon you all."
أن عائشة زوج النبي ﷺ كانت تقول إذا تشهدت: التحيات الطيبات، الصلوات الزاكيات الله، أشهد أن لا إله إلا الله وحده لا شريك له، وأشهد أن محمدا عبده ورسوله، السلام عليك أيها النبي ورحمة الله وبركاته، السلام علينا وعلى عباد الله الصالحين، السلام عليكم.
Malik narrated it in the chapter on prayer (59, 60) by two routes, from Abdul-Rahman bin Qasim and Yahya bin Saeed Ansari, both of them from Qasim bin Muhammad, and he related the hadith.Bayhaqi said, after narrating it through the route of Malik, "It was also narrated from Muhammad bin Salih bin Dinar, from Qasim bin Muhammad, as a raised report, but the correct version is that it stops at the companion."There is no disagreement among the scholars that the one praying has the choice among these tashahhuds, choosing whichever he wishes, the disagreement is only about which is preferable. Most of the scholars chose the tashahhud of Ibn Masud, and among them are Sufyan Thawri, Ibn Mubarak, Ahmad, Ishaq, and the people of legal reasoning. Shafii held the view of the tashahhud of Ibn Abbas. Malik held the view of the tashahhud of Umar bin Khattab, because he taught it to the people from the pulpit.See Sharh al-Sunnah (3/183).