The inscription on the seal-ring of the Prophet ﷺ consisted of three lines: Muhammad on one line, Rasul on another, and Allah on another. Muhammad bin Yahya did not mention "three lines" in his version of the hadith.
حدثنا محمد بن بشار ومحمد بن يحيى وغير واحد قالوا حدثنا محمد بن عبد الله الأنصاري حدثني أبي عن ثمامة
كان نقش خاتم النبي ﷺ ثلاثة أسطر محمد سطر ورسول سطر والله سطر ولم يذكر محمد بن يحيى في حديثه ثلاثة أسطر
[Sahih] See the previous hadith. There is also a report on this topic from Ibn Umar [Bukhari, no. 5865, and Muslim, no. 54/2091, 55].