"The Messenger of Allah (ﷺ) said: 'When any one of you goes to defecate, let him not face toward the Qiblah, rather let him face towards the east or the west.'"
Sunan an-Nasa'i Book 1, Hadith 22