Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "A man must not look at the private parts of another man, nor a woman at the private parts of another woman. A man must not lie with another man under a single garment, nor a woman with another woman under a single garment."

Azami 6351

Sahih

عن أبي سعيد الخدري

أن رسول الله ﷺ قال: لا ينظر الرجل إلى عورة الرجل، ولا المرأة إلى عورة المرأة، ولا يفضي الرجل إلى الرجل في ثوب واحد، ولا تفضي المرأة إلى المرأة في الثوب الواحد.

الأعظمي 6351صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Rights and duties of the Muslim woman, and good treatment of her
Section
Prohibition of looking at private parts
Numbering
Jami al-Kamil 6351 (2nd edition)
Azami 6351