Ayesha, the wife of the Prophet ﷺ, used to say in her tashahhud, "All greetings, all good things, and all pure prayers are due to 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 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 Prayer chapter (59, 60) from Abdul-Rahman bin Qasim and Yahya bin Saeed Ansari, both from Qasim bin Muhammad, who said (and he mentioned the hadith).Bayhaqi said, after narrating it through the route of Malik, "It has also been 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 a choice among these forms of tashahhud, choosing whichever he wishes. The disagreement concerns only which is more excellent. 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).