Sunan Ibn Majah, Book 1, Hadith 10 (Ibn Majah 276)

It was narrated from Abu Sa'eed Al-Khudri that:

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."