It was narrated from Jabir bin 'Abdullah:"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
Hadith No. 320
Sunan Ibn Majah
Gradings:
Muhammad Fouad Abd al-Baqi:
Sahih
Zubair Ali Zai:
Sahih