The Messenger of Allah (ﷺ) has forbidden us to face the two qiblahs at the time of urination or excretion.
Sunan Abi Dawud Book 1, Hadith 10