It was narrated from Qatadah, from 'Abdullah bin Sarjis, that the Prophet of Allah (ﷺ) said:
"None of you should urinate into a burrow in the ground." They said to Qatadah: "Why is it disliked to urinate into a burrow in the ground?" He said: "It is said that these are dwelling-places of the jinn."
Arabic/English book reference: Vol. 1, Book 1, Hadith 34