Mishkat al-Masabih 373
عَن مَرْوَان الْأَصْفَر قَالَ: «رَأَيْتُ ابْنَ عُمَرَ أَنَاخَ رَاحِلَتَهُ مُسْتَقْبِلَ الْقِبْلَةِ ثُمَّ جَلَسَ يَبُولُ إِلَيْهَا فَقُلْتُ يَا أَبَا عَبْدِ الرَّحْمَنِ أَلَيْسَ قَدْ نُهِيَ عَنْ هَذَا قَالَ بلَى إِنَّمَا نُهِيَ عَنْ ذَلِكَ فِي الْفَضَاءِ فَإِذَا كَانَ بَيْنَكَ وَبَيْنَ الْقِبْلَةِ شَيْءٌ يَسْتُرُكَ فَلَا بَأْس» . رَوَاهُ أَبُو دَاوُد
From Marwan al-Asfar, who said: "I saw Ibn ʿUmar make his riding camel kneel facing the qiblah, then sit urinating towards it. I said: 'O Abu ʿAbd ar-Rahman, has this not been forbidden?' He said: 'Yes, but that was forbidden only in open country. When there is something between you and the qiblah screening you, there is no harm.'" Reported by Abu Dawud.