Bukhari :: Book 1 :: Volume 4 :: Hadith 144
Whenever the Prophet went to answer the call of nature, he used to say, "Allah-umma inni a'udhu bika minal khubuthi wal khaba'ith i.e. O Allah, I seek Refuge with You from all offensive and wicked things (evil deeds and evil spirits)."
Source materials are from the University of Southern California MSA site|
Hadith eBooks converted from Imaan Star