Jami` at-Tirmidhi, Book 24, Hadith 28 (Tirmidhi 1799)

Narrated Anas bin Malik:

"The inscription on the ring of the Prophet (ﷺ) was in three lines: 'Muhammad' on a line, 'Messenger' on a line, and 'Allah' on a line."