Sahih al-Bukhari Book 46, Hadith 32
I saw Allah's Messenger (ﷺ) coming (or the Prophet (ﷺ) came) to the dumps of some people and urinated there
while standing .
The Prophet (ﷺ) entered the Mosque, and I too went there after tying the camel at the pavement of the Mosque. I said (to the Prophet (ﷺ) ), "This is your camel." He came out and started examining the camel and said, "Both the camel and its price are for you."
Allah's Messenger (ﷺ) said, "While a man was on the way, he found a thorny branch of a tree there on the way and removed it. Allah thanked him for that deed and forgave him."