Covering the private parts (satr) is obligatory both in private and in public
Libas is the cloth that is worn. The form لَبِسَ يَلْبَسُ (Sami’a) means to wear clothing; the form اَلبَسَ يُلْبِسُ (If’al) means to clothe someone; the form لَبَسَ يَلْبِسُ (Daraba) means to make something ambiguous; the form لَبَسَ يُلَبِّسُ (Taf’il) means to mix things up.
[Al-Qamus al-Muhit: p. 738, Al-Munjid: p. 777]
This word is used in the following verses:
➊ هُنَّ لِبَاسٌ لَّكُمْ وَأَنتُمْ لِبَاسٌ لَّهُنَّ [Al-Baqarah: 187]
“They are a garment for you and you are a garment for them.”
➋ وَلِبَاسُهُمْ فِيهَا حَرِيرٌ [Al-Hajj: 23]
“And their garment therein will be silk.”
➌ وَلَا تَلْبِسُوا الْحَقَّ بِالْبَاطِلِ [Al-Baqarah: 42]
“And do not mix the truth with falsehood.”
Bahz ibn Hakim narrates from his father, from his grandfather, who said: I asked, “O Messenger of Allah! From whom should we cover our private parts, and for whom may we leave them uncovered?” The Prophet ﷺ said:
احفظ عورتك إلا من زوجتك أو ما ملكت يمينك
“Guard your private parts from everyone except your wife and your slave woman.”
(The narrator says:) I asked again, “O Messenger of Allah! What if a man is with another man?” The Prophet ﷺ said:
إن استطعت أن لا يرينها أحد فلا يرينها
“Try as much as you can that no one sees them.”
(The narrator says:) I asked again, “O Messenger of Allah! What if one of us is alone?” The Prophet ﷺ said:
والله أحق أن يستحيى منه من الناس
“Allah is more deserving that one should feel shame before Him than before people.”
[Hasan: Sahih Abi Dawud: 3390, Kitab al-Hammam: Bab ma ja’a fi al-ta’arri, Abu Dawud: 4017, Ibn Majah: 1920, Ahmad: 3/5-4, Tirmidhi: 2769, Bayhaqi: 199/1, Hakim: 179/4]
A detailed discussion on the extent and determination of the satr has already been given in the first volume under the heading باب شروط الصلاة.