Yaala reported,

The Messenger of Allah ﷺ saw a man bathing in an open space without a lower garment. He ascended the pulpit, praised Allah and extolled Him, then said ﷺ, "Indeed, Allah عز وجل is Modest and Concealing. He loves modesty and concealment. So when one of you bathes, let him cover himself."

Abu Dawud 4012

Sahih

حدثنا عبد الله بن محمد بن نفيل حدثنا زهير عن عبد الملك بن أبي سليمان العرزمي عن عطاء

عن يعلى

أن رسول الله ﷺ رأى رجلا يغتسل بالبراز بلا إزار فصعد المنبر فحمد الله وأثنى عليه ثم قال ﷺ إن الله عز وجل حيي ستير يحب الحياء والستر فإذا اغتسل أحدكم فليستتر

أبو داود 4012صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Pigeons
Chapter
Prohibition of nudity
Numbering
Darussalam 4012
Abu Dawud 4012