Sayyiduna Anas (may Allah be pleased with him) says that when the Messenger of Allah (peace and blessings be upon him) would enter the toilet, he would say: "O Allah! I seek refuge with You from male and female devils, or from filth, or impurities, or from devils and sins."