Hadithcore
Mishkat al-Masabih, 312, 313

He also reported God's messenger as saying, “The key of prayer is purification, saying ‘God is most great’ makes it a sacred state, and the salutation brings the sacred state to an end.” Abu Dawud, Tirmidhi and Darimi transmitted it, and Ibn Majah transmitted it both from 'Ali and from Abu Sa'id.

وَعَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم: «مِفْتَاحُ الصَّلَاةِ الطُّهُورُ وَتَحْرِيمُهَا التَّكْبِيرُ وَتَحْلِيلُهَا التَّسْلِيمُ» . رَوَاهُ أَبُو دَاوُد وَالتِّرْمِذِيّ والدارمي وَرَوَاهُ ابْنُ مَاجَهْ عَنْهُ وَعَنْ أَبِي سَعِيدٍ

References1 variant
In-Book Reference
Book 3, Hadith 30