Abu Saeed Khudri reported,

He testified that the Messenger of Allah ﷺ forbade us from facing the qiblah while relieving ourselves or urinating.

Ibn Majah 320

Sahih

حدثنا العباس بن الوليد الدمشقي حدثنا مروان بن محمد حدثنا ابن لهيعة عن أبي الزبير عن جابر بن عبد الله حدثني

أبو سعيد الخدري

أنه شهد على رسول الله ﷺ أنه نهى أن نستقبل القبلة بغائط أو ببول

ابن ماجه 320صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Purification and its sunnahs
Chapter
Prohibition of facing the qibla while defecating or urinating
Numbering
Darussalam 320
Ibn Majah 320