Hadith 1034

عَنْ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُ قَالَ: كَانَ آخِرُ كَلَامِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ((الصَّلَاةَ الصَّلَاةَ، اتَّقُوا اللَّهَ فِيمَا مَلَكَتْ أَيْمَانُكُمْ))
It is narrated from Sayyiduna Ali (may Allah be pleased with him), he says that the last words of the Messenger of Allah (peace and blessings be upon him) were: Adhere to the prayer, adhere to the prayer, and fear Allah regarding your slaves.
Hadith Reference الفتح الربانی / كتاب الصلاة / 1034
Hadith Grading محدثین: صحیح
Hadith Takhrij «حديث صحيح۔ أخرجه ابوداود: 5156، وابن ماجه: 2698 ، (انظر مسند أحمد ترقيم الرسالة: 585 ترقیم بيت الأفكار الدولية: 585»