Sunan Ibn Majah, Book 22, Hadith 4 (Ibn Majah 2700)

It was narrated that 'Ali bin Abu Talib said:

“The last words of the Prophet (ﷺ) were: The prayer; and those whom your right hands prossess.”