"The inscription on the ring of the Prophet (ﷺ) was in three line: 'Muhammad' on a line, 'Messenger' on a line, 'Allah' on a line." And Muhammad bin Yahya (one of the two who narrated to him) did not say: "Three lines" in his narration.
There are narrations on this topic from Ibn 'Umar.
[Abu 'Eisa said:] This Hadith of Anas is a HasanSahih Gharib.