Sunan Ibn Majah, Book 1, Hadith 53 (Ibn Majah 319)

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."