This does not contradict what we have stated because his statement عليه السلام, "There is no harm in it if it bears the name Muhammad," permits wearing the ring while entering the toilet, but does not permit using it to perform istinja (cleansing) while it is on the hand, thereby coming into contact with impurity.
Then the Shaykh (Al-Mufid), may Allah سبحانه وتعالى support him, said: "It is not permissible to use a miswak (tooth-stick) while a person is relieving themselves, until they finish." What indicates this is (following hadith):
Commentary #15