Riyad as-Salihin, Book 1, Hadith 191 (In-Book)

'Abdullah bin 'Abbas (May Allah be pleased with them) reported: Messenger of Allah saw a man wearing a gold ring. So he (the Prophet) pulled it off and threw it away, saying, "One of you takes a live coal, and puts it on his hand." It was said to the man after Messenger of Allah had left: "Take your ring (of gold) and utilize it," whereupon he said: "No, by Allah, I would never take it when Messenger of Allah has thrown it away".[Muslim].

الثامن ‏:‏ عن ابن عباس رضي الله عنهما أن رسول الله صلى الله عليه وسلم رأى خاتمًا من ذهب في يد رجل، فنزعه فطرحه وقال‏:‏ ‏ "‏ يعمد أحدكم إلى جمرة من نار فيجعلها في يده ‏!‏‏" ‏ فقيل للرجل بعد ما ذهب رسول الله صلى الله عليه وسلم ‏:‏ خذ خاتمك؛ انتفع به‏.‏ قال‏:‏ لا والله لا آخذه أبدًا وقد طرحه رسول الله صلى الله عليه وسلم‏.‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏

sunnah.com