Sunan Ibn Majah, Book 1, Hadith 37 (Ibn Majah 303)

It was narrated from Anas bin Malik that:

When the Prophet entered the toilet, he would take off his ring.