Abu Huraira reported God's messenger as saying, "Guard against the two things which produce cursing.” He was asked what they were and said, "Relieving oneself where people walk, or where they sit in the shade.” Muslim transmitted it.
Hadith Referenceمشكوة المصابيح / كتاب الطهارة / 339
Hadith Gradingالألبانی:صَحِيحٌ | زبیر علی زئی:صحيح
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «رواه مسلم (68/ 269)»