The Messenger of Allah (ﷺ) saw a man washing in a public place without a lower garment. So…

Sunan Abu Dawud Book 33 Hadith 4

Sunan Abu Dawud #4012

Hot Baths (Kitab Al-Hammam) 33:4

Narrated Ya'la:

The Messenger of Allah (ﷺ) saw a man washing in a public place without a lower garment. So he mounted the pulpit, praised and extolled Allah and said: Allah is characterised by modesty and concealment. So when any of you washes, he should conceal himself.

Chapter: The prohibition of nudity

Grade: Sahih (Al-Albani)