Sunan Ibn Majah, Book 1, Hadith 9 (Ibn Majah 275)

It was narrated from Muhammed bin Al-Hanafiyyah that his father said:

"The Messenger of Allah said: 'The key to prayer is purification, its opening is to say 'Allahu Akbar' and its closing is to say As-salamu 'alaikum.'"