The hadeeth of Abu Sa'id Al-Khudrii (may Allah be pleased with him) stated that the Prophet ﷺ said: "A woman must not look at a woman's private part nor must a man look at a man's private part: neither should two men lie naked under one cover, nor should two women lie naked under the same cover."
This statement of his ﷺ prohibits a woman from looking at the private part of another woman. If the private part of a woman, defined as the area between the navel and the knee, becomes exposed for any reason, perhaps she is urinating or the wind blows her garment, it is not permissible for another woman to look at it. Similarly, if the private part of man becomes exposed due to the blowing of wind or other reasons, it is not permissible for another man to look at it.
Some women hang to this hadeeth to think that a woman is not obliged to cover her body except the part between the navel and knees. This is an erroneous understanding. This is because the Prophet ﷺ never permitted women to wear clothes that only cover those parts between the navel and the knee. But he ﷺ forbade a woman from looking at another woman's private part. Hence, the difference between the two issues is clear. A woman must wear cloth that is enough to cover her entire body. The women companions (may
Allah be pleased with them all) of the Prophet ﷺ used to cover all the parts of their bodies; everything between the feet and the palms were covered.
If the private part of a woman opens for any reason such as wind, it is not permissible for another woman to look at those parts between the navel and the knees. The same thing holds for a man; he should not look at the private part of another man which are the parts between the navel and knees.
However, it is permissible for a man to expose his chest and shoulders to another man, based on the fact that a man is allowed to wear a wrapper. This is reported in the hadeeth of a man who requested that the Prophet ﷺ marry a woman, (referred to as) Waahibah, to him. That was the woman who came to the Prophet ﷺ and said, "O Messenger of Allah, I give myself to you." He ﷺ looked at her but his soul was not enthralled by her, so he remained quiet and the woman sat. Then a man from the congregation said, 'Marry her to me, O Messenger of Allah.' The Prophet ﷺ enquired from him, "What have you for her marriage gift?" He replied, 'I have my wrapper'. Sahl (may Allah be pleased with him), the narrator of the hadeeth, said he had no garment or anything on him except just the wrapper. Then the Prophet ﷺ said: "You will be without a wrapper if you give it to her but she will not have a bridal gift if you leave it to yourself. Search for anything even if it is a ring made of steel." The man left to search for anything but he was unable to get even a ring made of steel because he was poor. Then the Prophet ﷺ said, "Have you anything which you have memorized) from the Qur'an?" He replied: 'Yes, I memorized this and that chapters.' The Prophet ﷺ then said, "I marry her to you for what you have of the Qur'an (as her dowry)." That is, you should teach her the verses you have memorized from the Qur'an, and that is her dowry. The point of reference is that a man is allowed to wear only a wrapper, but a woman is not allowed to do same. This (the wearing of wrapper only) was not the habit of the women companions.