Zayd ibn Arqam reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, these washrooms are inhabited by jinn. When one of you enters his place of relief, let him say: I seek refuge in Allah from foul and noxious things.”
Source: Sunan Abī Dāwūd 4
Grade: Sahih (authentic) according to Al-Albani
عَنْ زَيْدِ بْنِ أَرْقَمَ عَنْ رَسُولِ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ إِنَّ هَذِهِ الْحُشُوشَ مُحْتَضَرَةٌ فَإِذَا أَتَى أَحَدُكُمُ الْخَلَاءَ فَلْيَقُلْ أَعُوذُ بِاللَّهِ مِنَ الْخُبُثِ وَالْخَبَائِثِ
4 سنن أبي داود كتاب الطهارة باب ما يقول الرجل إذا دخل الخلاء
2263 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع