حَدَّثَنَا أَسْلَمُ بْنُ سَهْلٍ الْوَاسِطِيُّ، ثنا مُحَمَّدُ بْنُ أَبَانَ، ثنا مُحَمَّدُ بْنُ يَزِيدَ، عَنْ سُفْيَانَ بْنِ حُسَيْنٍ، عَنِ الزُّهْرِيِّ، عَنْ عَطَاءِ بْنِ يَزِيدَ، عَنْ أَبِي أَيُّوبَ، عَنِ النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِذَا ذَهَبَ أَحَدُكُمْ إِلَى الْغَائِطِ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ، وَلَا يَسْتَدْبِرْهَا وَلَكِنْ شَرِّقُوا وَغَرِّبُوا»
It is narrated from Sayyiduna Abu Ayyub (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "When one of you goes to relieve himself, do not face the qiblah nor turn your back to it, but face east or west."