Abu Dawud Book 1, Hadith Number 11.

Chapter : Disapproval of facing the qibla while releiving oneself.

Narated By Abdullah ibn Umar : Marwan al-Asfar said: I saw Ibn Umar make his camel kneel down facing the qiblah, then he sat down urinating in its direction. So I said: AbuAbdurRahman, has this not been forbidden? He replied: Why not, that was forbidden only in open country; but when there is something between you and the qiblah that conceals you , then there is no harm.