قرآن ﴿ يا بني آدم خذوا زينتكم عند كل مسجد ﴾ الأعراف ٣١
عن إبن عباس قال كان ناس يطوفون بالبيت عراة حتى أن كانت المرأة لتطوف بالبيت وهي عريانة فتعلق على سفلتها سيوراً مثل هذه السيور التي تكون على وجوه الحمر من الذباب وهي تقول اليوم يبدو بعضه أو كله وما بدا منه فلا اُحلّه فأنزل الله تعالى على نبيه ﷺ ﴿ يا بني آدم خذوا زينتكم عند كل مسجد ﴾ فأمروا بلبس الثياب
أسباب النزول للواحدي
{ Oh children of Adam, take hold of your adornment at every place of worship [masjid] } Al-A’raf 31
From Ibn ‘Abbas who said: Some people from the Bedouins used to go around the House [the ka’ba] naked, to the point that women would go around the house naked with straps around their lower area like the straps that are put on the faces of donkeys to protect against flies, and they would say: Today some of it or all of it is showing, and I do not permit what is showing. So Allah Most High sent down to his Prophet (SAW) { Oh children of Adam, take hold of your adornment at every place of worship } . And so they were ordered to wear garments.
Al-Wahidi, Asbab Al-nuzul [Reasons for the Revelations]