The Messenger of Allah ﷺ saw a gold ring on a man's hand and said, "Throw it away."So the man threw it away and put on an iron ring instead.The Prophet ﷺ said, "This one is worse than the first."Then the man put on a silver ring, and the Prophet ﷺ said nothing about it.
حدثنا عفان حدثنا حماد أنبأنا عمار بن أبي عمار أن
إن رسول الله ﷺ رأى في يد رجل خاتما من ذهب فقال ألق ذا فألقاه فتختم بخاتم من حديد فقال ذا شر منه فتختم بخاتم من فضة فسكت عنه
Its chain of transmission is daif because it is disconnected. Ammar bin Abu Ammar, the freedman of Banu Hashim, is trustworthy, but he came later. He narrates from Ibn Abbas, Abu Hurairah, and others, and he did not meet Umar. See what will follow at 6518, 6680, 6977.