Abu Ayub reported,

The Messenger of Allah ﷺ said, "When one of you goes to relieve himself, he should neither face the qiblah nor turn his back to it. Rather, let him face east or west."Abu Ayub said, "When we came to Sham, we found that the latrines had been built facing the qiblah, so we would turn aside and ask Allah's forgiveness."

Ahmad 23577

Sahih

حدثنا عبد الرزاق حدثنا معمر عن الزهري عن عطاء بن يزيد الليثي

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

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

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