Bara' reported: When the Ansar performed the Pilgrimage, they did not enter their houses but from behind. A person from the Ansar came and he began to enter from his door but it was said to him (why he was doing something in contravention to the common practice of coming to the houses from behind). Then this verse was revealed. "Piety is not that you come to the doors from behind" (ii. 189).
Ibn Abbas (RA) reported: During the pre-Islamic days women circumambulated the Ka’bah nakedly, and said: Who would provide cloth to cover the one who is circumambulating the Ka’bah so that she would cover her private parts? And then she would say: Today will be exposed the whole or the part and what is exposed I shall not make it lawful. It was in this connection that the verse was revealed: "Adorn yourself at every place of worship" (vii. 31).