Marwan Asfar reported,

I saw Ibn Umar make his camel kneel facing the qiblah, then he sat down to urinate toward it. I said, "Abu Abdul-Rahman, has this not been forbidden?"He replied, "Yes, but that was forbidden only in open ground. When there is something between you and the qiblah to screen you, there is no harm in it."

Abu Dawud 11

Daif

حدثنا محمد بن يحيى بن فارس حدثنا صفوان بن عيسى عن الحسن بن ذكوان

عن مروان الأصفر قال

رأيت ابن عمر أناخ راحلته مستقبل القبلة ثم جلس يبول إليها فقلت يا أبا عبد الرحمن أليس قد نهي عن هذا قال بلى إنما نهي عن ذلك في الفضاء فإذا كان بينك وبين القبلة شيء يسترك فلا بأس

أبو داود 11ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Purification
Chapter
Dislike of facing the qibla when relieving oneself
Numbering
Darussalam 11
Abu Dawud 11