[Machine] The Messenger of Allah ﷺ said, "When one of you enters the toilet, he should not face the qibla (direction of prayer), nor turn his back towards it. Instead, he should face east or west." Abu Ayyub (may Allah be pleased with him) said, "When we came to Ash-Sham (Syria), we found seats that faced the qibla, so we used to change our direction and seek forgiveness from Allah."
قَالَ رَسُولُ اللهِ ﷺ إِذَا أَتَى أَحَدُكُمُ الْخَلَاءَ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ وَلَا يَسْتَدْبِرْهَا وَلْيُشَرِّقْ وَلْيُغَرِّبْ قَالَ أَبُو أَيُّوبَ فَلَمَّا أَتَيْنَا الشَّامَ وَجَدْنَا مَقَاعِدَ تَسْتَقْبِلُ الْقِبْلَةَ فَجَعَلْنَا نَنْحَرِفُ وَنَسْتَغْفِرُ اللهَ ﷻ