"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.'" (Using translation from Nasāʾī 22)
قَالَ رَسُولُ اللهِ ﷺ «إِذَا أَتَى أَحَدُكُمُ الْغَائِطَ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ»