Rafi' bin Ishaq (may Allah have mercy on him) said: I heard Abu Ayyub (may Allah be pleased with him) say in Egypt: By Allah! I do not know what to do with these toilets (which have been built facing the qiblah), when the Messenger of Allah (peace and blessings be upon him) said: "When one of you goes to relieve himself or to urinate, let him not face the qiblah with his private part."
Hadith Referenceالمعجم الكبير للطبراني / باب الخاء / 3916
It is narrated from Sayyiduna Abu Ayyub (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Do not face the qiblah with your private parts, nor turn your backs to it."
Hadith Referenceالمعجم الكبير للطبراني / باب الخاء / 3917
Sayyiduna Abu Ayyub al-Ansari (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) forbade us from facing the qiblah or turning our backs to it when one of us goes to urinate or relieve himself.
Hadith Referenceالمعجم الكبير للطبراني / باب الخاء / 3918
It is narrated from Sayyiduna Abu Ayyub (may Allah be pleased with him), with whom the Messenger of Allah (peace and blessings be upon him) stayed, that the Messenger of Allah (peace and blessings be upon him) said: "When one of you urinates or relieves himself, let him not face the qiblah with his private part, nor turn his back to it."
Hadith Referenceالمعجم الكبير للطبراني / باب الخاء / 3919