When you go to a place to relieve yourselves, do not turn your face or back toward the Qiblah while defecating or urinating, but face east or west.'' Abu Ayyūb said: ''When we arrived in Syria, we found privies built facing the Ka‘bah. So, we would turn away from it and ask Allah, the Exalted, for forgiveness [Sahih/Authentic] - [Al-Bukhari and Muslim]
"إذا أَتَيتُم الغَائِط, فَلاَ تَستَقبِلُوا القِبلَة بِغَائِط ولا بَول, ولا تَسْتَدْبِرُوهَا, ولكن شَرِّقُوا أو غَرِّبُوا"". قال أبو أيوب: «فَقَدِمنَا الشَّام, فَوَجَدنَا مَرَاحِيض قد بُنِيَت نَحوَ الكَّعبَة, فَنَنحَرِف عَنها, ونَستَغفِر الله عز وجل» . [صحيح.] - [متفق عليه.]"