It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Beware of the two things that bring curses!" The Companions (may Allah be pleased with them) asked: O Messenger of Allah, what are the two things that bring curses? He (peace and blessings be upon him) said: "The one who relieves himself in the people's path and in their shade."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 468
Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Beware of the three things that bring curses: relieving oneself at the watering places, in the people's path, and in the place of their shade."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 469
Muhammad bin Sirin said: A man said to Sayyiduna Abu Hurayrah (may Allah be pleased with him): "You have given us rulings on everything, so much so that you will soon give us a ruling on excrement." Sayyiduna Abu Hurayrah (may Allah be pleased with him) said: I heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever relieves himself on a frequented path among the paths of the Muslims, upon him is the curse of Allah, the angels and all the people."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 470
Hassan bin Atiyyah (may Allah have mercy on him) said: It is disliked for a man to urinate in the open air, and to defecate on top of a mountain as though he were a perched bird.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 471
Sayyiduna Abu Hurayrah (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) disliked urinating in the open air.
Abu Ahmad said: The narration is mawdu' (fabricated).
Its narrator Yusuf bin al-Safar is matruk (abandoned).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 472