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.'"
English reference: Vol. 1, Book 1, Hadith 318
Arabic reference: Book 1, Hadith 339
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.