It was narrated from Anas bin Malik that:
When the Prophet entered the toilet, he would take off his ring.