Sayyiduna Abu Ayyub al-Ansari (may Allah be pleased with him) said: "Do not face the qiblah or turn your backs to it when relieving yourselves or urinating." And on another occasion he narrated it as marfu' (attributed) to the Prophet (peace and blessings be upon him).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 428
Sufyan narrates with the same chain that the Prophet (peace and blessings be upon him) said, and in this hadith these words are additional: "But face east or west." Abu Ayyub (may Allah be pleased with him) said: We came to Syria and found toilets that had been built facing the qiblah. We would turn away from them and seek forgiveness from Allah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 429
It is narrated from Sayyiduna Salman (may Allah be pleased with him) that (it was said to him): Your Prophet (peace and blessings be upon him) has taught you everything, even the manner of relieving yourselves. The narrator says that he said: "Yes!" Indeed he forbade us "to face the qiblah when relieving ourselves or urinating, or to clean ourselves with the right hand, or to clean ourselves with fewer than three stones, or to clean ourselves with dung or bone."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 430
Sayyiduna Abu Hurayrah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "I am to you like a father. When one of you goes to relieve himself, he should neither face the qiblah nor turn his back to it, and when he cleans himself, he should not do so with his right hand." And he (peace and blessings be upon him) used to command (the use of) three stones and forbid dung and decayed bone.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 431
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he (peace and blessings be upon him) said: "I am to you like a father; I teach you. So when one of you goes to the toilet, he should neither face the qiblah nor turn his back to it, nor clean himself with his right hand." And he (peace and blessings be upon him) used to command (the use of) three stones and forbid dung and decayed bone.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 432
Muhammad bin Ajlan narrates with the same chain, except that he did not mention the words "I teach you". He said: "When one of you goes to relieve himself or urinate, he should neither face the qiblah nor turn his back to it, and he should clean himself with three stones." And he (peace and blessings be upon him) forbade (cleaning oneself with) dung and decayed bone.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 433
Ma'qil bin Abi Ma'qil al-Asadi (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) "forbade facing the two qiblahs when relieving oneself or urinating."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 434