Mishkat al-Masabih 447
وَعَن يعلى: أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَأَى رَجُلًا يَغْتَسِلُ بِالْبَرَازِ فَصَعِدَ الْمِنْبَرَ فَحَمِدَ الله وَأثْنى عَلَيْهِ وَقَالَ: «إِن الله عز وَجل حييّ حييّ ستير يحب الْحيَاء والستر فَإِذَا اغْتَسَلَ أَحَدُكُمْ فَلْيَسْتَتِرْ» . رَوَاهُ أَبُو دَاوُدَ وَالنَّسَائِيُّ وَفِي رِوَايَتِهِ قَالَ: «إِنَّ اللَّهَ سِتِّيرٌ فَإِذَا أَرَادَ أَحَدُكُمْ أَنْ يَغْتَسِلَ فَلْيَتَوَارَ بِشَيْءٍ»
From Yaʿla: The Messenger of Allah ﷺ saw a man bathing in an open place. He went up on the minbar, praised Allah and extolled Him, and said: "Allah, Mighty and Majestic, is modest and concealing, and He loves modesty and concealment, so when one of you bathes, let him cover himself." Reported by Abu Dawud and an-Nasaʾi, and in his narration he said: "Allah is concealing, so when one of you wants to bathe, let him screen himself with something."