The Messenger of Allah ﷺ forbade facing either of the two qiblahs while relieving oneself or urinating.
حدثنا عفان قال حدثنا وهيب قال حدثنا عمرو بن يحيى عن أبي زيد
نهى رسول الله ﷺ أن تستقبل القبلتان بغائط أو بول
No references are available.
Its chain of transmission is daif due to the unknown status of Abu Zayd, mentioned previously at 17765.