It was narrated that Ma'qil bin Abu Ma'qil Al-Asadi, who was a Companion of the Prophet, said:
"The Messenger of Allah forbade us from facing either of the two Qiblah when defecating or urinating."
English reference: Vol. 1, Book 1, Hadith 319
Arabic reference: Book 1, Hadith 340
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.