Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:11126Muḥammad b. Zakariyyā > ʿAbdullāh b. Rajāʾ > Isrāʾīl > Muslim > Mujāhid > Ibn ʿAbbās

[Machine] The Messenger of Allah ﷺ used to perform ghusl from behind screens, and no one ever saw his private parts.  

الطبراني:١١١٢٦حَدَّثَنَا مُحَمَّدُ بْنُ زَكَرِيَّا أنا عَبْدُ اللهِ بْنُ رَجَاءٍ أنا إِسْرَائِيلُ عَنْ مُسْلِمٍ عَنْ مُجَاهِدٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

كَانَ رَسُولُ اللهِ ﷺ «يَغْتَسِلُ مِنْ وَرَاءِ حُجُرَاتٍ وَمَا رَأَى عَوْرَتَهُ أَحَدٌ قَطُّ»