Read the Arabic text and available English translation from Riyad as-Salihin, with its supplied source reference.
Sunnah.com : Book 18, Hadith 261
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
الذي يتخلى في طريق الناس أو في ظلهم"
Abu Hurairah (May Allah be pleased with him) said:
The Messenger of Allah (ﷺ) said, "Avoid two habits which provoke cursing." The Companions said: "What are those things which provoke cursing?" He said, "Relieving on the thoroughfares or under the shades where people take shelter and rest."
[Muslim].
Full reference and source
Sunnah.com : Book 18, Hadith 261
Arabic/English book : Book 18, Hadith 1771
References, translations and numbering differ between editions. A URL number is an internal app record identifier, not universal hadith numbering. Only supplied grading is displayed; no new authenticity assessment is made.