"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.'" (Using translation from Ibn Mājah 318)
أَنَّهُ سَمِعَ أَبَا أَيُّوبَ يَقُولُ نَهَى رَسُولُ اللهِ ﷺ أَنْ يَسْتَقْبِلَ الَّذِي يُرِيدُ الْغَائِطَ الْقِبْلَةَ وَقَالَ «شَرِّقُوا وَغَرِّبُوا»