It is narrated from Sayyiduna Abu Sa'id (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The key to prayer is ablution; its tahrim (the act of entering the prayer, after which other things become forbidden) is the takbir; its tahlil (the act of leaving the prayer) is the taslim; after every two rak'ahs there is a taslim; and a prayer is not valid in which Surah al-Fatihah and some further portion of the Qur'an with it are not recited."
I (the author) say: Imam al-Tirmidhi recorded it in his Jami' and Ibn Majah in his Sunan through Tarif al-Sa'di Abu Sufyan with this same chain, but their narration does not contain the words "and after every two rak'ahs there is a taslim". Also, Imam al-Tirmidhi transmitted "there is no prayer" instead of "is not valid", and "a surah" instead of "some further portion". Imam al-Tirmidhi says that in this chapter hadith are also narrated from Sayyiduna Ali and Sayyidah Aishah (may Allah be pleased with them both), and that on this matter the chain of the hadith of Sayyiduna Ali (may Allah be pleased with him) is better and more authentic than that of the hadith of Sayyiduna Abu Sa'id (may Allah be pleased with him).
It has a shahid (supporting narration) from the hadith of Sayyiduna Abdullah bin Zayd (may Allah be pleased with him), which will come in the Book of Opening the Prayer, in the chapter "The tahrim of prayer is the takbir" and in the chapter "The tahlil is by the taslim". Imam Abu Dawud and Imam al-Tirmidhi recorded it from the hadith of Sayyiduna Ali bin Abi Talib (may Allah be pleased with him).