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, face east or west."Abu Ayub said, "When we came to Sham, we found the latrines built facing the qiblah, so we would turn aside and ask Allah عز وجل for forgiveness."

Ahmad 23536

Sahih

حدثنا إسماعيل أخبرنا معمر عن الزهري عن عطاء بن يزيد

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

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

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