ENOfficial
It was narrated that Abu Ayyub Ansari said: "The Messenger of Allah (ﷺ) forbade the person who went to the Gha'it to face the Qiblah. He said: 'face towards the east or the west.'"
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا أَبُو الطَّاهِرِ، أَحْمَدُ بْنُ عَمْرِو بْنِ السَّرْحِ أَنْبَأَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ، أَخْبَرَنِي يُونُسُ، عَنِ ابْنِ شِهَابٍ، عَنْ عَطَاءِ بْنِ يَزِيدَ، أَنَّهُ سَمِعَ أَبَا أَيُّوبَ الأَنْصَارِيَّ، يَقُولُ نَهَى رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ أَنْ يَسْتَقْبِلَ الَّذِي يَذْهَبُ إِلَى الْغَائِطِ الْقِبْلَةَ وَقَالَ " شَرِّقُوا أَوْ غَرِّبُوا " .
sunnah.com