"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.
كَانَ نَقْشُ خَاتَمِ النَّبِيِّ ﷺ ثَلاَثَةَ أَسْطُرٍ مُحَمَّدٌ سَطْرٌ وَرَسُولُ سَطْرٌ وَاللَّهِ سَطْرٌ وَلَمْ يَذْكُرْ مُحَمَّدُ بْنُ يَحْيَى فِي حَدِيثِهِ ثَلاَثَةَ أَسْطُرٍ وَفِي الْبَابِ عَنِ ابْنِ عُمَرَ