Abu Ayub reported,

The Messenger of Allah ﷺ said, "When one of you goes to relieve himself, he must not face the qiblah. Rather, let him face east or west."The narrator said, "When we came to Sham, we found that the latrines had been built facing the qiblah, so we would turn away from it and ask Allah's forgiveness."

Ahmad 23524

Sahih

حدثنا محمد بن جعفر قال أملى علي معمر بن راشد أخبرنا الزهري عن عطاء بن يزيد

عن أبي أيوب الأنصاري قال

قال رسول الله ﷺ إذا أتى أحدكم الغائط فلا يستقبلن القبلة ولكن ليشرق أو ليغرب قال فلما قدمنا الشام وجدنا مراحيض جعلت نحو القبلة فننحرف ونستغفر الله

أحمد 23524صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Ayub Ansari
Numbering
Darussalam 23524
Ahmad 23524