When the Prophet entered the toilet, he would take off his ring.
Sunan Ibn Majah Book 1, Hadith 37