It is narrated from Sayyiduna Abdullah bin Sarjis (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "None of you should urinate into a hole. When you go to sleep, put out your lamps, for the mouse takes hold of the wick and sets the house on fire. Tie up the mouths of your vessels, cover your drinks, and close the doors." Qatadah (may Allah have mercy on him) was asked: Why is urinating into a hole forbidden? He said: They are the dwellings of the jinn.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 479