The Messenger of Allah ﷺ forbade us from facing either of the two qiblahs while urinating or defecating.
حدثنا إسماعيل أخبرنا أيوب عن نافع
أن رسول الله ﷺ نهى أن نستقبل القبلتين ببول أو غائط
Its chain of transmission is daif, due to the unknown identity of the narrator transmitting from the companion, but the hadith is sahih, having previously appeared at 17767.