Abdullah bin Sarjas reported,

The Prophet ﷺ said, "None of you should urinate into a hole in the ground. When you go to sleep, put out the lamp, for a mouse may drag away the wick and burn down the household. Tie up your waterskins, cover your drinks, and lock your doors at night."The narrators asked Qatada, "Why is urinating into a hole disliked?"He replied, "It is said that such holes are the dwellings of the jinn."

Azami 1416

Sahih

عن عبد الله بن سرجس

أن النبي ﷺ قال: لا يبولن أحدكم في الجحر، وإذا نمتم فأطفئوا السراج، فإن الفأرة تأخذ الفتيلة فتحرق أهل البيت، وأوكئوا الأسقية، وخمروا الشراب، وغلقوا الأبواب بالليل قالوا لقتادة: ما يكره من البول في الجحر؟ قال: يقال إنها مساكن الجن.

الأعظمي 1416صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Purification
Section
Prohibition of urinating in a hole
Numbering
Jami al-Kamil 1416 (2nd edition)
Azami 1416