"Abu Sa'eed Al-Khudri narrated to me, that he bears witness that the Messenger of Allah forbade facing the Qiblah when defecating or urinating.'"
Sunan Ibn Majah Book 1, Hadith 54