The Messenger of Allah ﷺ said, "None of you should bathe in an open desert or on top of a roof that does not conceal him, for even if he is not seen by people, he is still seen."
حدثنا محمد بن عبيد بن ثعلبة الحماني حدثنا عبد الحميد أبو يحيى الحماني حدثنا الحسن بن عمارة عن المنهال بن عمرو عن أبي عبيدة
قال رسول الله ﷺ لا يغتسلن أحدكم بأرض فلاة ولا فوق سطح لا يواريه فإن لم يكن يرى فإنه يرى
No references are available.
[Its chain of transmission is very daif] Busiri said, This chain is daif. Abu Ubaydah, it is said, did not hear from his father Abdullah bin Masud, and there is consensus that Hasan bin Umara's hadith is to be disregarded.