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. Face east or west instead."

Azami 1407

Sahih

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

قال رسول الله ﷺ: إذا أتى أحدكم الغائط؛ فلا يستقبل القبلة ولا يولها ظهره؛ شرقوا أو غربوا.

الأعظمي 1407صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Purification
Section
Prohibition of facing the qibla while defecating or urinating in open spaces
Numbering
Jami al-Kamil 1407 (2nd edition)
Azami 1407