" لاَ تَسْتَقْبِلُوا الْقِبْلَةَ وَلاَ تَسْتَدْبِرُوهَا لِغَائِطٍ أَوْ بَوْلٍ وَلَكِنْ شَرِّقُوا أَوْ غَرِّبُوا "
It was narrated from Abu Ayyub that the Prophet (ﷺ) said: "Do not face towards the Qiblah nor turn your backs toward it when defecating or urinating, rather face toward the east or the west."