Ya’la reported: The Messenger of Allah, peace and blessings be upon him, saw a man bathing in public, so he ascended the pulpit and then praised and extoled Allah. The Prophet said, “Verily, Allah Almighty is forbearing, modest, and protective. He loves modesty and protection. Thus, if one of you washes himself, let him protect himself with a screen.”
Source: Sunan al-Nasā’ī 406
Grade: Sahih (authentic) according to Al-Albani
عَنْ يَعْلَى أَنَّ رَسُولَ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ رَأَى رَجُلًا يَغْتَسِلُ بِالْبَرَازِ فَصَعِدَ الْمِنْبَرَ فَحَمِدَ اللَّهَ وَأَثْنَى عَلَيْهِ وَقَالَ إِنَّ اللَّهَ عَزَّ وَجَلَّ حَلِيمٌ حَيِيٌّ سِتِّيرٌ يُحِبُّ الْحَيَاءَ وَالسَّتْرَ فَإِذَا اغْتَسَلَ أَحَدُكُمْ فَلْيَسْتَتِرْ
406 سنن النسائي كتاب الغسل والتيمم باب الاستتار عند الاغتسال
404 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح النسائي